﻿:root {
    --bama-yellow: #ffc92e;
    --bama-yellow-hover: #f0b90b;
    --bama-yellow-soft: rgba(255, 201, 46, 0.14);
    --bama-dark: #12161f;
    --bama-dark-2: #1b2230;
    --bama-dark-border: #2a3345;
    --bama-bg: #f4f6f9;
    --bama-surface: #ffffff;
    --bama-text: #111827;
    --bama-muted: #64748b;
    --bama-border: #e5e7eb;
    --bama-radius: 14px;
    --bama-shadow: 0 6px 24px rgba(18, 22, 31, 0.06);
    --bama-shadow-hover: 0 14px 32px rgba(18, 22, 31, 0.11);
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: 'Shabnam', Tahoma, sans-serif;
    background-color: var(--bama-bg);
    color: var(--bama-text);
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= Header & Logo Hover ================= */
.bama-header {
    background-color: var(--bama-dark);
    border-bottom: 1px solid var(--bama-dark-border);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.bama-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bama-yellow);
    font-weight: 800;
    font-size: 1.15rem;
    min-width: 0;
    flex-shrink: 1;
    transition: color 0.25s ease;
}

    .bama-brand img.bama-logo-img {
        height: 36px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: right center;
        filter: brightness(0) saturate(100%) invert(82%) sepia(61%) saturate(1024%) hue-rotate(349deg) brightness(102%) contrast(101%);
        transition: filter 0.25s ease;
    }

    .bama-brand:hover img.bama-logo-img {
        filter: brightness(0) invert(1);
    }

.bama-nav-link {
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

    .bama-nav-link:hover,
    .bama-nav-link.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.09);
    }

/* ================= Buttons (Overflow-Safe) ================= */
.btn-bama-primary,
.btn-bama-dark,
.btn-bama-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    max-width: 100%;
    text-align: center;
    line-height: 1.45;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-bama-primary {
    background-color: var(--bama-yellow);
    color: var(--bama-dark);
    border: none;
    font-weight: 700;
    padding: 9px 18px;
}

    .btn-bama-primary:hover {
        background-color: var(--bama-yellow-hover);
        color: var(--bama-dark);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(255, 201, 46, 0.3);
    }

.bama-header-cta {
    padding: 8px 15px;
    font-size: 0.84rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-bama-dark {
    background-color: var(--bama-dark);
    color: #ffffff;
    border: 1px solid var(--bama-dark-border);
    font-weight: 600;
    padding: 9px 18px;
}

    .btn-bama-dark:hover {
        background-color: var(--bama-dark-2);
        color: var(--bama-yellow);
    }

.btn-bama-outline {
    background: transparent;
    color: var(--bama-dark);
    border: 1.5px solid var(--bama-border);
    font-weight: 600;
    padding: 7px 14px;
}

    .btn-bama-outline:hover {
        border-color: var(--bama-dark);
        background: var(--bama-dark);
        color: var(--bama-yellow);
    }

/* ================= Responsive Segmented Filter Tabs ================= */
.bama-seg-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
}

.bama-seg-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid var(--bama-border);
    color: var(--bama-text);
    transition: all 0.16s ease;
    text-align: center;
    line-height: 1.4;
}

    .bama-seg-tab:hover {
        border-color: var(--bama-dark);
        color: var(--bama-dark);
    }

    .bama-seg-tab.active {
        background: var(--bama-dark);
        border-color: var(--bama-dark);
        color: var(--bama-yellow);
        font-weight: 700;
    }

/* ================= Responsive Form / Action Bars ================= */
.bama-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* ================= Business Hero ================= */
.bama-hero {
    background: radial-gradient(circle at 15% 20%, rgba(255, 201, 46, 0.14), transparent 40%), linear-gradient(135deg, #12161f 0%, #1d2536 100%);
    color: #ffffff;
    padding: 3rem 0 4.2rem;
    position: relative;
    border-bottom: 3px solid var(--bama-yellow);
}

.bama-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 201, 46, 0.14);
    border: 1px solid rgba(255, 201, 46, 0.35);
    color: var(--bama-yellow);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.bama-hero-title {
    font-size: clamp(1.35rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

    .bama-hero-title span {
        color: var(--bama-yellow);
    }

.bama-hero-subtitle {
    color: #cbd5e1;
    font-size: 0.95rem;
    max-width: 660px;
    margin: 0 auto 1.75rem;
    line-height: 1.8;
}

.bama-search-shell {
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
    max-width: 920px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

    .bama-search-shell .form-control,
    .bama-search-shell .form-select {
        border: 1px solid #e2e8f0;
        background-color: #f8fafc;
        border-radius: 10px;
        height: 46px;
        font-size: 0.88rem;
        color: var(--bama-text);
    }

        .bama-search-shell .form-control:focus,
        .bama-search-shell .form-select:focus {
            background-color: #ffffff;
            border-color: var(--bama-yellow);
            box-shadow: 0 0 0 3px rgba(255, 201, 46, 0.22);
        }

.bama-search-btn {
    height: 46px;
}

/* ================= Responsive Categories Grid (Mobile-First) ================= */
.bama-cat-strip {
    margin-top: -28px;
    position: relative;
    z-index: 5;
}

.bama-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.bama-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    background: var(--bama-surface);
    border: 1px solid var(--bama-border);
    border-radius: var(--bama-radius);
    box-shadow: var(--bama-shadow);
    text-align: center;
    min-width: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

    .bama-cat-tile:hover {
        transform: translateY(-2px);
        border-color: var(--bama-yellow);
        box-shadow: var(--bama-shadow-hover);
    }

.bama-cat-tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bama-dark);
    color: var(--bama-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.bama-cat-tile:hover .bama-cat-tile-icon {
    background: var(--bama-yellow);
    color: var(--bama-dark);
}

.bama-cat-tile-all .bama-cat-tile-icon {
    background: var(--bama-yellow);
    color: var(--bama-dark);
}

.bama-cat-tile-all:hover .bama-cat-tile-icon {
    background: var(--bama-dark);
    color: var(--bama-yellow);
}

.bama-cat-tile-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bama-text);
    line-height: 1.35;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 576px) {
    .bama-cat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .bama-cat-tile-title {
        font-size: 0.82rem;
    }
}

@media (min-width: 992px) {
    .bama-cat-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 14px;
    }

    .bama-cat-tile {
        padding: 16px 12px;
    }

    .bama-cat-tile-title {
        font-size: 0.86rem;
    }
}

/* ================= Custom Searchable Category Picker ================= */
.bama-cat-picker {
    position: relative;
}

.bama-picker-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 11px;
    background: #f8fafc;
    border: 1.5px solid var(--bama-border);
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--bama-text);
    text-align: right;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .bama-picker-trigger:hover,
    .bama-cat-picker.is-open .bama-picker-trigger {
        background: #ffffff;
        border-color: var(--bama-yellow);
        box-shadow: 0 0 0 3px rgba(255, 201, 46, 0.2);
    }

.bama-picker-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bama-picker-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: var(--bama-muted);
}

.bama-picker-clear {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--bama-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.15s ease;
}

    .bama-picker-clear:hover {
        background: #ef4444;
        color: #ffffff;
    }

.bama-picker-arrow {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.bama-cat-picker.is-open .bama-picker-arrow {
    transform: rotate(180deg);
}

.bama-picker-panel {
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid var(--bama-border);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(18, 22, 31, 0.1);
    overflow: hidden;
}

.bama-picker-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 1px solid var(--bama-border);
    color: var(--bama-muted);
    font-size: 0.8rem;
}

    .bama-picker-search input {
        border: none;
        background: transparent;
        outline: none;
        width: 100%;
        font-size: 0.82rem;
        color: var(--bama-text);
    }

.bama-picker-list {
    max-height: 290px;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.bama-picker-group {
    margin-top: 2px;
}

.bama-picker-parent {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--bama-dark);
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .bama-picker-parent:hover,
    .bama-picker-group.is-open .bama-picker-parent {
        background: #f1f5f9;
    }

.bama-picker-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--bama-dark);
    color: var(--bama-yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.bama-picker-chevron {
    font-size: 0.68rem;
    color: var(--bama-muted);
    transition: transform 0.18s ease;
}

.bama-picker-group.is-open .bama-picker-chevron {
    transform: rotate(-90deg);
    color: var(--bama-dark);
}

.bama-picker-children {
    display: none;
    padding: 3px 10px 4px 2px;
    margin-right: 11px;
    border-right: 2px solid #e2e8f0;
}

.bama-picker-group.is-open .bama-picker-children {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bama-picker-item {
    width: 100%;
    text-align: right;
    border: none;
    background: transparent;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .bama-picker-item:hover {
        background: var(--bama-yellow-soft);
        color: var(--bama-dark);
    }

    .bama-picker-item.is-selected {
        background: var(--bama-dark);
        color: var(--bama-yellow);
        font-weight: 700;
    }

.bama-picker-all,
.bama-picker-parent-all {
    font-weight: 700;
}

.bama-picker-empty {
    text-align: center;
    padding: 16px 8px;
    font-size: 0.8rem;
    color: var(--bama-muted);
}

/* ================= Section Header & Listing Cards ================= */
.bama-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 1.15rem;
}

.bama-section-head-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.bama-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    line-height: 1.4;
    min-width: 0;
}

    .bama-section-title::before {
        content: "";
        width: 5px;
        height: 20px;
        border-radius: 99px;
        background: var(--bama-yellow);
        display: inline-block;
        flex-shrink: 0;
    }

.bama-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bama-dark);
    color: var(--bama-yellow);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.bama-ad-card {
    background: var(--bama-surface);
    border: 1px solid var(--bama-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

    .bama-ad-card:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 201, 46, 0.85);
        box-shadow: var(--bama-shadow-hover);
    }

.bama-ad-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
}

    .bama-ad-thumb img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.35s ease;
    }

.bama-ad-card:hover .bama-ad-thumb img {
    transform: scale(1.04);
}

.bama-ad-cat-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(18, 22, 31, 0.84);
    backdrop-filter: blur(4px);
    color: var(--bama-yellow);
    font-size: 0.67rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 7px;
}

.bama-ad-body {
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.bama-ad-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--bama-text);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
}

.bama-ad-price {
    font-size: 0.79rem;
    font-weight: 800;
    color: var(--bama-dark);
    background: var(--bama-yellow-soft);
    padding: 4px 9px;
    border-radius: 7px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 8px;
    align-self: flex-start;
}

.bama-ad-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.73rem;
    color: var(--bama-muted);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed var(--bama-border);
    min-width: 0;
}

.bama-ad-loc {
    min-width: 0;
    flex: 1 1 auto;
}

.bama-ad-description {
    white-space: normal;
    word-break: break-word;
    line-height: 1.95;
}

    .bama-ad-description p {
        margin-bottom: 0.65rem;
    }

        .bama-ad-description p:last-child {
            margin-bottom: 0;
        }

    .bama-ad-description ul,
    .bama-ad-description ol {
        padding-right: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .bama-ad-description li {
        margin-bottom: 0.25rem;
    }

/* ================= B2B Value Banner ================= */
.bama-cta-banner {
    background: linear-gradient(120deg, var(--bama-dark) 0%, #232c3d 100%);
    border-radius: 18px;
    padding: 2rem;
    color: #ffffff;
    border: 1px solid var(--bama-dark-border);
}

.bama-feature-box {
    background: var(--bama-surface);
    border: 1px solid var(--bama-border);
    border-radius: 16px;
    padding: 18px;
    height: 100%;
}

.bama-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bama-yellow-soft);
    color: #b48100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

/* ================= Create / Static Pages ================= */
.bama-create-header {
    background: var(--bama-dark);
    color: #ffffff;
    padding: 1.75rem 0;
    border-bottom: 3px solid var(--bama-yellow);
    margin-bottom: 1.75rem;
}

.bama-form-card {
    background: var(--bama-surface);
    border: 1px solid var(--bama-border);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--bama-shadow);
}

.bama-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--bama-border);
}

.bama-step-num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--bama-yellow);
    color: var(--bama-dark);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bama-form-card .form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.bama-form-card .form-control,
.bama-form-card .form-select {
    border-radius: 11px;
    border: 1.5px solid #e2e8f0;
    padding: 10px 14px;
    font-size: 0.9rem;
    background-color: #fcfcfd;
    transition: all 0.2s ease;
}

    .bama-form-card .form-control:focus,
    .bama-form-card .form-select:focus {
        background-color: #ffffff;
        border-color: var(--bama-yellow);
        box-shadow: 0 0 0 3px rgba(255, 201, 46, 0.22);
    }

.bama-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 24px 14px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .bama-dropzone:hover,
    .bama-dropzone.is-dragover {
        border-color: var(--bama-yellow);
        background: var(--bama-yellow-soft);
    }

.bama-tips-card {
    background: var(--bama-dark);
    color: #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    position: sticky;
    top: 86px;
}

    .bama-tips-card li {
        font-size: 0.84rem;
        line-height: 1.8;
        margin-bottom: 10px;
        color: #cbd5e1;
    }

/* ================= Detail & Gallery (Square-Friendly) ================= */
.bama-gallery-stage {
    background: #f8fafc;
    border: 1px solid #eef2f6;
    user-select: none;
    touch-action: pan-y;
}

.bama-main-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 520px;
    object-fit: contain;
    background: #f8fafc;
}

.bama-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: cover;
    background: #f1f5f9;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.72;
    transition: all 0.2s ease;
}

    .bama-thumb:hover,
    .bama-thumb.active {
        border-color: var(--bama-yellow);
        opacity: 1;
    }

.bama-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(18, 22, 31, 0.72);
    color: var(--bama-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 3;
}

    .bama-gallery-nav:hover {
        background: var(--bama-yellow);
        color: var(--bama-dark);
    }

.bama-gallery-prev {
    right: 12px;
}

.bama-gallery-next {
    left: 12px;
}

.bama-gallery-counter {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(18, 22, 31, 0.78);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    direction: ltr;
}

.sticky-sidebar {
    position: sticky;
    top: 86px;
}

/* ================= Dashboard & Status Steps ================= */
.bama-dash-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 11px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    transition: all 0.2s ease;
}

    .bama-dash-link:hover {
        background: #f1f5f9;
        color: var(--bama-dark);
    }

    .bama-dash-link.active {
        background: var(--bama-dark);
        color: var(--bama-yellow);
    }

.bama-status-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .bama-status-steps .step {
        font-size: 0.74rem;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 999px;
        background: #f1f5f9;
        color: #64748b;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

        .bama-status-steps .step.done {
            background: #dcfce7;
            color: #166534;
        }

        .bama-status-steps .step.current {
            background: var(--bama-yellow-soft);
            color: #926000;
        }

        .bama-status-steps .step.rejected {
            background: #fee2e2;
            color: #991b1b;
        }

/* ================= HTMX & Pagination ================= */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pagination .page-link {
    color: var(--bama-dark);
    border-color: var(--bama-border);
}

.pagination .page-item.active .page-link {
    background-color: var(--bama-dark);
    border-color: var(--bama-dark);
    color: var(--bama-yellow);
    font-weight: 700;
}

/* ================= Footer (Watermark Logo) & Mobile Bottom Nav ================= */
.bama-footer {
    background: var(--bama-dark);
    color: #94a3b8;
    border-top: 3px solid var(--bama-yellow);
}

    .bama-footer a {
        color: #cbd5e1;
        transition: color 0.2s;
    }

        .bama-footer a:hover {
            color: var(--bama-yellow);
        }

.bama-footer-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.85rem;
}

.bama-footer-logo {
    height: 36px;
    width: auto;
    max-width: 195px;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bama-footer-brand:hover .bama-footer-logo {
    opacity: 0.9;
    transform: translateY(-1px);
}

.bama-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -6px 22px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    z-index: 1040;
}

.bama-bottom-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 2px;
    border-radius: 10px;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .bama-bottom-item i {
        font-size: 1.05rem;
    }

    .bama-bottom-item.active,
    .bama-bottom-item:hover {
        color: var(--bama-dark);
    }

    .bama-bottom-item.bama-bottom-cta {
        background: var(--bama-yellow);
        color: var(--bama-dark);
        font-weight: 800;
        padding: 7px 6px;
        margin: 0 4px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(255, 201, 46, 0.35);
    }

/* ================= Modern Form Controls (PostAd) ================= */
.bama-picker-trigger-lg {
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 11px;
    background: #fcfcfd;
}

.bama-radio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.bama-radio-card input[type="radio"] {
    display: none;
}

.bama-radio-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 10px;
    border: 1.5px solid var(--bama-border);
    border-radius: 12px;
    background: #fcfcfd;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.18s ease;
    margin: 0;
}

    .bama-radio-card label i {
        font-size: 1.1rem;
        color: var(--bama-muted);
    }

.bama-radio-card input[type="radio"]:checked + label {
    border-color: var(--bama-yellow);
    background: var(--bama-dark);
    color: var(--bama-yellow);
    box-shadow: 0 6px 16px rgba(18, 22, 31, 0.14);
}

    .bama-radio-card input[type="radio"]:checked + label i {
        color: var(--bama-yellow);
    }

.bama-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bama-pill-item input[type="radio"] {
    display: none;
}

.bama-pill-item label {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--bama-border);
    background: #fcfcfd;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s ease;
    margin: 0;
}

    .bama-pill-item label:hover {
        border-color: var(--bama-yellow);
        background: var(--bama-yellow-soft);
    }

.bama-pill-item input[type="radio"]:checked + label {
    background: var(--bama-dark);
    border-color: var(--bama-dark);
    color: var(--bama-yellow);
}

.bama-switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border: 1.5px solid var(--bama-border);
    border-radius: 11px;
    background: #fcfcfd;
    cursor: pointer;
    transition: border-color 0.18s ease;
    margin: 0;
}

    .bama-switch-card:hover {
        border-color: var(--bama-yellow);
    }

    .bama-switch-card .form-check-input:checked {
        background-color: var(--bama-dark);
        border-color: var(--bama-dark);
    }

/* ================= Square Image Cropper & Sortable Uploader ================= */
.bama-upload-item {
    position: relative;
    width: 108px;
    height: 108px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--bama-border);
    background: #f1f5f9;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

    .bama-upload-item:hover {
        transform: translateY(-2px);
        border-color: var(--bama-yellow);
    }

    .bama-upload-item:active {
        cursor: grabbing;
    }

    .bama-upload-item.is-main {
        border-color: var(--bama-yellow);
        box-shadow: 0 0 0 2px rgba(255, 201, 46, 0.35);
    }

    .bama-upload-item.is-dragging {
        opacity: 0.45;
        transform: scale(0.95);
    }

    .bama-upload-item.is-drag-over {
        border-color: var(--bama-dark);
        box-shadow: 0 0 0 3px var(--bama-yellow);
        transform: scale(1.04);
    }

    .bama-upload-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.bama-upload-order-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 6px;
    background: rgba(18, 22, 31, 0.8);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.bama-upload-item.is-main .bama-upload-order-badge {
    background: var(--bama-yellow);
    color: var(--bama-dark);
}

.bama-upload-remove {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

    .bama-upload-remove:hover {
        background: #b91c1c;
    }

.bama-upload-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 26px;
    background: rgba(18, 22, 31, 0.88);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    z-index: 2;
}

.bama-upload-item.is-main .bama-upload-footer {
    color: var(--bama-yellow);
}

.bama-upload-footer-label {
    font-size: 0.65rem;
    font-weight: 700;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.bama-upload-move-btn {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .bama-upload-move-btn:hover:not(:disabled) {
        background: var(--bama-yellow);
        color: var(--bama-dark);
    }

    .bama-upload-move-btn:disabled {
        opacity: 0.25;
        cursor: not-allowed;
    }

.bama-crop-stage {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--bama-dark);
    background: #f8fafc;
    box-shadow: 0 8px 24px rgba(18, 22, 31, 0.12);
    user-select: none;
}

    .bama-crop-stage canvas,
    #bamaCropCanvas {
        display: block;
        width: 100%;
        height: 100%;
        cursor: grab;
        touch-action: none;
    }

.bama-crop-grid {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(18, 22, 31, 0.18) 1px, transparent 1px), linear-gradient(to bottom, rgba(18, 22, 31, 0.18) 1px, transparent 1px);
    background-size: 33.333% 33.333%;
}

.bama-crop-mode-btn {
    border: 1.5px solid var(--bama-border);
    background: #f8fafc;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 10px;
    transition: all 0.16s ease;
}

    .bama-crop-mode-btn.active {
        background: var(--bama-dark);
        border-color: var(--bama-dark);
        color: var(--bama-yellow);
    }

/* ================= Mini Rich-Text Editor (PostAd) ================= */
.bama-editor-hidden-textarea {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

.bama-editor-wrap {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .bama-editor-wrap.is-focused {
        border-color: var(--bama-yellow);
        box-shadow: 0 0 0 3px rgba(255, 201, 46, 0.22);
    }

.bama-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 1px solid var(--bama-border);
}

.bama-editor-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bama-editor-sep {
    width: 1px;
    height: 20px;
    background: #cbd5e1;
    margin: 0 2px;
}

.bama-editor-btn {
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .bama-editor-btn:hover {
        background: #e2e8f0;
        color: var(--bama-dark);
    }

    .bama-editor-btn.is-active {
        background: var(--bama-dark);
        color: var(--bama-yellow);
    }

.bama-editor-color-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #ffffff;
    padding: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

    .bama-editor-color-btn:hover {
        transform: scale(1.12);
        border-color: var(--bama-dark);
    }

.bama-editor-color-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

.bama-editor-area {
    min-height: 180px;
    max-height: 420px;
    overflow-y: auto;
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--bama-text);
    outline: none;
    word-break: break-word;
}

    .bama-editor-area:empty::before {
        content: attr(data-placeholder);
        color: #94a3b8;
        pointer-events: none;
    }

    .bama-editor-area p {
        margin-bottom: 0.55rem;
    }

    .bama-editor-area ul,
    .bama-editor-area ol {
        padding-right: 1.4rem;
        margin-bottom: 0.65rem;
    }

.bama-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    background: #f8fafc;
    border-top: 1px solid #eef2f6;
    font-size: 0.72rem;
    color: var(--bama-muted);
}

/* ================= Ad Daily Stats Modal & SVG Chart ================= */
.bama-kpi-box {
    background: #f8fafc;
    border: 1px solid var(--bama-border);
    border-radius: 12px;
    padding: 10px 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bama-kpi-label {
    font-size: 0.72rem;
    color: var(--bama-muted);
    font-weight: 600;
}

.bama-kpi-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bama-dark);
    line-height: 1.2;
}

.bama-kpi-sub {
    margin-top: auto;
    font-size: 0.7rem;
    color: var(--bama-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    flex-wrap: wrap;
}

.bama-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.bama-chart-card {
    background: #ffffff;
    border: 1px solid var(--bama-border);
    border-radius: 14px;
    padding: 12px 10px 6px;
}

.bama-stats-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.bama-chart-col {
    cursor: pointer;
}

    .bama-chart-col:hover .bama-chart-hit {
        fill: rgba(255, 201, 46, 0.14);
    }

.bama-chart-tooltip {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    background: rgba(18, 22, 31, 0.94);
    color: #ffffff;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 0.74rem;
    line-height: 1.5;
    min-width: 115px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    white-space: nowrap;
}

.bama-stats-details summary {
    cursor: pointer;
    list-style: none;
}

    .bama-stats-details summary::-webkit-details-marker {
        display: none;
    }

/* ================= Responsive Mobile Refinements ================= */
@media (max-width: 767.98px) {
    .bama-brand img.bama-logo-img {
        height: 26px;
        max-width: 160px;
    }

    .bama-header-cta {
        padding: 6px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .bama-hero {
        padding: 1.6rem 0 2.6rem;
    }

    .bama-hero-badge {
        font-size: 0.72rem;
        padding: 5px 11px;
        margin-bottom: 0.65rem;
    }

    .bama-hero-title {
        font-size: 1.28rem;
        margin-bottom: 1rem;
    }

    .bama-search-shell {
        padding: 8px;
        border-radius: 14px;
    }

        .bama-search-shell .form-control,
        .bama-search-shell .form-select,
        .bama-search-btn {
            height: 42px;
            font-size: 0.84rem;
        }

    .bama-cat-strip {
        margin-top: -18px;
    }

    .bama-cat-tile {
        padding: 11px 6px;
        gap: 6px;
        border-radius: 12px;
    }

    .bama-cat-tile-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .bama-cat-tile-title {
        font-size: 0.74rem;
    }

    .bama-section-title {
        font-size: 1rem;
    }

    .bama-form-card {
        padding: 15px;
        border-radius: 14px;
    }

    .bama-cta-banner {
        padding: 1.35rem;
        border-radius: 14px;
    }

    .bama-main-img {
        max-height: none;
    }

    .bama-footer-logo {
        height: 30px;
    }
}

/* ایمن‌سازی کامل موبایل (<576px): هیچ دکمه یا تب‌گروهی بیرون نمی‌زند */
@media (max-width: 575.98px) {
    .bama-radio-grid {
        grid-template-columns: 1fr;
    }

    /* تب‌های فیلتر (پرداختی‌ها، آمار و ...) در موبایل ۳ ستونه منظم و تمام‌عرض */
    .bama-seg-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 6px;
    }

    .bama-seg-tab {
        padding: 7px 6px;
        font-size: 0.74rem;
        width: 100%;
    }

    /* محافظ سراسری برای هر btn-group باقیمانده بوت‌استرپ در موبایل */
    .btn-group {
        display: flex !important;
        flex-wrap: wrap;
        width: 100%;
        gap: 4px;
    }

        .btn-group > .btn {
            flex: 1 1 auto;
            border-radius: 8px !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            font-size: 0.76rem;
            padding: 6px 8px;
        }

    /* نوار دکمه‌های پایین فرم‌ها در موبایل تمام‌عرض و تمیز زیر هم */
    .bama-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

        .bama-form-actions > .btn,
        .bama-form-actions > .btn-bama-primary,
        .bama-form-actions > .btn-bama-outline,
        .bama-form-actions > .btn-bama-dark {
            width: 100%;
            padding-left: 14px !important;
            padding-right: 14px !important;
        }

    /* هدر بخش‌ها در موبایل */
    .bama-section-head > .btn,
    .bama-section-head > .btn-bama-outline,
    .bama-section-head > .btn-bama-primary {
        width: 100%;
    }

    /* کارت‌های آگهی ۱ ستونه در موبایل با خوانایی بالا */
    .bama-ad-card {
        border-radius: 14px;
    }

    .bama-ad-body {
        padding: 13px 14px;
    }

    .bama-ad-title {
        font-size: 0.94rem;
        min-height: auto;
    }

    .bama-ad-price {
        font-size: 0.84rem;
        padding: 5px 10px;
    }

    .bama-ad-meta {
        font-size: 0.78rem;
    }

    /* دکمه‌های داخل کارت‌های داشبورد (تایید مالکیت و عملیات آگهی) */
    .bama-dash-actions > .btn,
    .bama-dash-actions > form {
        flex: 1 1 calc(50% - 6px);
    }

        .bama-dash-actions > form > .btn {
            width: 100%;
        }
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }

    .bama-bottom-nav {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .bama-cta-btn {
        width: 100%;
    }
}


.bama-cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bama-dark);
    color: var(--bama-yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}


/* ================= Dashboard Mobile Nav, Thumb & Plan Card ================= */
.bama-mobile-dash-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--bama-border);
    border-radius: 14px;
    padding: 6px;
    box-shadow: var(--bama-shadow);
}

.bama-mobile-dash-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 6px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    transition: all 0.16s ease;
    white-space: nowrap;
}

    .bama-mobile-dash-tab.active {
        background: var(--bama-dark);
        color: var(--bama-yellow);
    }

.bama-dash-thumb {
    width: 78px;
    height: 78px;
    background: #f1f5f9;
    border: 1px solid #eef2f6;
}

@media (min-width: 576px) {
    .bama-dash-thumb {
        width: 108px;
        height: 108px;
    }
}

.plan-option-card {
    display: block;
    height: 100%;
    padding: 1rem;
    border-radius: 14px;
    border: 1.5px solid var(--bama-border);
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

    .plan-option-card:hover {
        border-color: var(--bama-yellow);
        background: #ffffff;
    }

    .plan-option-card.is-selected {
        border-color: var(--bama-dark);
        background: #ffffff;
        box-shadow: 0 6px 18px rgba(18, 22, 31, 0.08);
    }

 
.bama-radio-card,
.bama-pill-item {
    position: relative;
}

    .bama-radio-card input[type="radio"],
    .bama-pill-item input[type="radio"] {
        display: block;
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
        margin: 0;
        pointer-events: none;
    }

/* ================= Hero Floating Location Pickers ================= */
.bama-search-shell {
    position: relative;
    z-index: 30;
}

.bama-hero-picker .bama-picker-trigger {
    height: 46px;
    border-width: 1px;
    border-color: #e2e8f0;
    background-color: #f8fafc;
    font-size: 0.86rem;
    font-weight: 500;
}

.bama-hero-picker .bama-picker-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    min-width: 220px;
    margin-top: 0;
    z-index: 1050;
    text-align: right;
}

@media (max-width: 767.98px) {
    .bama-hero-picker .bama-picker-trigger {
        height: 42px;
        font-size: 0.82rem;
        padding: 6px 9px;
    }

    .bama-hero-picker .bama-picker-panel {
        min-width: 0;
    }
}


/* ================= Leaflet Map & Navigation Apps ================= */
.bama-map-box {
    width: 100%;
    height: 310px;
    border-radius: 14px;
    border: 1.5px solid var(--bama-border);
    overflow: hidden;
    background: #eef2f6;
    z-index: 1;
}

.bama-map-box-sm {
    height: 250px;
}

.bama-map-pin-wrap {
    background: transparent;
    border: none;
}

.bama-map-pin {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--bama-dark);
    border: 2.5px solid var(--bama-yellow);
    box-shadow: 0 6px 16px rgba(18, 22, 31, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .bama-map-pin i {
        transform: rotate(45deg);
        color: var(--bama-yellow);
        font-size: 0.95rem;
    }

.bama-nav-apps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.bama-nav-app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 11px;
    border: 1.5px solid var(--bama-border);
    background: #f8fafc;
    color: var(--bama-dark);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.16s ease;
}

    .bama-nav-app-btn:hover {
        border-color: var(--bama-dark);
        background: var(--bama-dark);
        color: var(--bama-yellow);
    }

@media (max-width: 575.98px) {
    .bama-map-box {
        height: 250px;
    }

    .bama-nav-apps {
        grid-template-columns: 1fr;
    }
}

/* ================= Share Modal Grid ================= */
.bama-share-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.bama-share-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: 12px;
    border: 1.5px solid var(--bama-border);
    background: #f8fafc;
    color: var(--bama-dark);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

    .bama-share-tile i {
        font-size: 1.3rem;
    }

    .bama-share-tile:hover {
        transform: translateY(-2px);
        border-color: var(--bama-dark);
        background: #ffffff;
    }

.bama-share-wa i {
    color: #16a34a;
}

.bama-share-tg i {
    color: #0284c7;
}

.bama-share-eitaa i {
    color: #ea580c;
}

.bama-share-bale i {
    color: #10b981;
}

.bama-share-sms i {
    color: #475569;
}

.bama-share-native i {
    color: #b45309;
}


/* ================= Skeleton Loading System (RTL & CLS-Safe) ================= */
@keyframes bamaSkelShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.bama-skel-hidden {
    display: none !important;
}

.bama-skel {
    display: block;
    border-radius: 8px;
    background: linear-gradient(110deg, #e9eef4 8%, #f8fafc 18%, #e9eef4 33%);
    background-size: 220% 100%;
    animation: bamaSkelShimmer 1.35s linear infinite;
}

.bama-skel-dark {
    background: linear-gradient(110deg, #1f2737 8%, #2d374c 18%, #1f2737 33%);
    background-size: 220% 100%;
}

.bama-skel-line {
    height: 12px;
    border-radius: 6px;
}

.bama-skel-line-lg {
    height: 16px;
    border-radius: 7px;
}

.bama-skel-pill {
    height: 24px;
    border-radius: 999px;
}

/* شیمر نرم روی تصاویر آگهی تا لحظه کامل شدن دانلود */
.bama-ad-thumb.is-img-loading,
.bama-gallery-stage.is-img-loading {
    background: linear-gradient(110deg, #e9eef4 8%, #f8fafc 18%, #e9eef4 33%);
    background-size: 220% 100%;
    animation: bamaSkelShimmer 1.35s linear infinite;
}

    .bama-ad-thumb.is-img-loading img,
    .bama-gallery-stage.is-img-loading img {
        opacity: 0;
    }

.bama-ad-thumb img,
.bama-gallery-stage img {
    transition: opacity 0.22s ease;
}

/* اسکلت کارت آگهی (هم‌ابعاد دقیق bama-ad-card برای جلوگیری از پرش صفحه) */
.bama-skel-ad-card {
    pointer-events: none;
}

    .bama-skel-ad-card .bama-ad-thumb {
        border-bottom: 1px solid #eef2f6;
    }

/* نوار پیشرفت باریک و حرفه‌ای بالای صفحه هنگام درخواست‌های HTMX */
.bama-top-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

    .bama-top-progress.is-active {
        opacity: 1;
        background: linear-gradient(90deg, transparent, var(--bama-yellow), #fff3c4, var(--bama-yellow), transparent);
        background-size: 200% 100%;
        animation: bamaSkelShimmer 1.1s linear infinite;
    }

@media (prefers-reduced-motion: reduce) {
    .bama-skel,
    .bama-ad-thumb.is-img-loading,
    .bama-gallery-stage.is-img-loading,
    .bama-top-progress.is-active {
        animation: none;
    }
}