:root {
    --main-font: 'IRANYekanX';
    --color-main: #198754;
    --color-secondary: #F2F2F7;
    --border-radius: 12px;
    --gradient-primary: linear-gradient(135deg, #198754, #157347);
}

body {
    font-family: var(--main-font) !important;
    direction: ltr;
    background-color: #f9fafb;
    margin: 0;
    touch-action: manipulation;
    webkit-tap-highlight-color: transparent;
}
a {
    text-decoration: none !important;
}
.ltr {
    direction: ltr;
}
.rtl {
    direction: rtl;
}
h1, h2, h3, h4, h5, h6, input, textarea {
    font-family: var(--main-font) !important;
}
.item-hover
{
    transition: all 0.2s ease;
}
.item-hover:hover
{
    background: var(--color-secondary);
    border-radius: var(--border-radius) ;
}
.item-hover-active {
    background: var(--color-secondary);
    border-radius: var(--border-radius);
}

.bg-gradient-primary{
    background: var(--gradient-primary);
    color:#fff;
}

input,
textarea,
select {
    font-size: 16px !important;
}

.br-12
{
    border-radius: var(--border-radius);
}

/* Font Weight */
.fw-100 {
    font-weight: 100 !important;
}
.fw-200 {
    font-weight: 200 !important;
}
.fw-300 {
    font-weight: 300 !important;
}
.fw-400 {
    font-weight: 400 !important;
}
.fw-500 {
    font-weight: 500 !important;
}
.fw-600 {
    font-weight: 600 !important;
}
.fw-700 {
    font-weight: 700 !important;
}
.fw-800 {
    font-weight: 800 !important;
}
.fw-900 {
    font-weight: 900 !important;
}
.fw-1000 {
    font-weight: 1000 !important;
}

.bg-sec
{
    background-color: var(--color-secondary) !important;
}

/* Text */
.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}


/* Btn App */
.app-btn-transform-active
{
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}
.app-btn-transform-active:active {
    transform: scale(0.96) !important;
}

.app-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

/* active */
.app-btn:active {
    transform: scale(0.96) !important;
}

/* disabled (general) */
.app-btn:disabled,
.app-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
}

/* main */
.app-btn-main {
    background: var(--color-main);
    color: white;
}

.app-btn-main:active {
    background: #0051D5;
}

.app-btn-main:disabled,
.app-btn-main.disabled {
    background: #9bb8f2;
    color: #ffffff;
}

/* link */
.app-btn-link {
    transition: all 0.2s ease;
}

.app-btn-link:active {
    transform: scale(0.96);
}

.app-btn-link:disabled,
.app-btn-link.disabled {
    opacity: 0.5;
}

/* secondary */
.app-btn-secondary {
    background: var(--color-secondary);
    color: #000000;
}

.app-btn-secondary:active {
    background: #E5E5EA;
}

.app-btn-secondary:disabled,
.app-btn-secondary.disabled {
    background: #f1f1f4;
    color: #777;
}

/* success */
.app-btn-success {
    background: #198754;
    color: #fff;
}

.app-btn-success:active {
    background: #0e5d38;
}

.app-btn-success:disabled,
.app-btn-success.disabled {
    background: #8fd3b3;
}

/* danger */
.app-btn-danger {
    background: #dc3545;
    color: #fff;
}

.app-btn-danger:active {
    background: #b02a37;
}

.app-btn-danger:disabled,
.app-btn-danger.disabled {
    background: #f1a1a8;
}


/* Form App */
.app-form-group {
    margin-bottom: 16px;
}
.app-form-label {
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    font-size: 13px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.app-form-control {
    border: none;
    border-radius: 12px;
    padding: 16px 16px;
    font-size: 17px;
    background: #F2F2F7;
    color: #000000;
    transition: all 0.2s ease;
}
.app-form-control:focus {
    background: #E5E5EA;
    box-shadow: none;
    outline: none;
}
.app-form-control::placeholder {
    color: #C7C7CC;
}

.app-form-control[readonly] {
    background: #E5E5EA;
    color: #6C757D;
    cursor: not-allowed;
    opacity: 1;
}
.app-form-control[readonly]:focus {
    box-shadow: none;
    outline: none;
    background: #E5E5EA;
}


/* Badge App */
.app-badge {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.app-badge.premium {
    background: rgba(255, 204, 0, 0.15);
    color: #FFCC00;
}
.app-badge.verified {
    background: rgba(52, 199, 89, 0.15);
    color: #34C759;
}

/* Table */
.table td, .table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.table td {
    white-space: nowrap;
}

.text-justify {
    text-align: justify !important;
}



/* =================================================
   Persian RTL Responsive Font System
   1 = Largest | 20 = Smallest
================================================= */
/* ===== Mobile (<576px) ===== */
.font-size-1 {font-size:2rem;}      /*32*/
.font-size-2 {font-size:1.85rem;}
.font-size-3 {font-size:1.7rem;}
.font-size-4 {font-size:1.55rem;}
.font-size-5 {font-size:1.4rem;}
.font-size-6 {font-size:1.3rem;}
.font-size-7 {font-size:1.2rem;}
.font-size-8 {font-size:1.1rem;}
.font-size-9 {font-size:1.05rem;}
.font-size-10{font-size:1rem;}      /*16*/
.font-size-11{font-size:.95rem;}
.font-size-12{font-size:.9rem;}
.font-size-13{font-size:.85rem;}
.font-size-14{font-size:.8rem;}
.font-size-15{font-size:.75rem;}    /*12*/
.font-size-16{font-size:.7rem;}
.font-size-17{font-size:.65rem;}
.font-size-18{font-size:.6rem;}
.font-size-19{font-size:.55rem;}
.font-size-20{font-size:.5rem;}
/* ===== SM ≥576px ===== */
@media (min-width:576px){
    .font-size-1 {font-size:2.2rem;}
    .font-size-2 {font-size:2rem;}
    .font-size-3 {font-size:1.8rem;}
    .font-size-4 {font-size:1.65rem;}
    .font-size-5 {font-size:1.5rem;}
    .font-size-6 {font-size:1.35rem;}
    .font-size-7 {font-size:1.25rem;}
    .font-size-8 {font-size:1.15rem;}
    .font-size-9 {font-size:1.1rem;}
    .font-size-10{font-size:1.05rem;}
    .font-size-11{font-size:1rem;}
    .font-size-12{font-size:.95rem;}
    .font-size-13{font-size:.9rem;}
    .font-size-14{font-size:.85rem;}
    .font-size-15{font-size:.8rem;}
    .font-size-16{font-size:.75rem;}
    .font-size-17{font-size:.7rem;}
    .font-size-18{font-size:.65rem;}
    .font-size-19{font-size:.6rem;}
    .font-size-20{font-size:.55rem;}
}
/* ===== MD ≥768px ===== */
@media (min-width:768px){
    .font-size-1 {font-size:2.5rem;}
    .font-size-2 {font-size:2.2rem;}
    .font-size-3 {font-size:2rem;}
    .font-size-4 {font-size:1.8rem;}
    .font-size-5 {font-size:1.65rem;}
    .font-size-6 {font-size:1.5rem;}
    .font-size-7 {font-size:1.35rem;}
    .font-size-8 {font-size:1.25rem;}
    .font-size-9 {font-size:1.15rem;}
    .font-size-10{font-size:1.1rem;}
    .font-size-11{font-size:1.05rem;}
    .font-size-12{font-size:1rem;}
    .font-size-13{font-size:.95rem;}
    .font-size-14{font-size:.9rem;}
    .font-size-15{font-size:.85rem;}
    .font-size-16{font-size:.8rem;}
    .font-size-17{font-size:.75rem;}
    .font-size-18{font-size:.7rem;}
    .font-size-19{font-size:.65rem;}
    .font-size-20{font-size:.6rem;}
}
/* ===== LG ≥992px ===== */
@media (min-width:992px){
    .font-size-1 {font-size:2.8rem;}
    .font-size-2 {font-size:2.5rem;}
    .font-size-3 {font-size:2.2rem;}
    .font-size-4 {font-size:2rem;}
    .font-size-5 {font-size:1.8rem;}
    .font-size-6 {font-size:1.65rem;}
    .font-size-7 {font-size:1.5rem;}
    .font-size-8 {font-size:1.35rem;}
    .font-size-9 {font-size:1.25rem;}
    .font-size-10{font-size:1.15rem;}
    .font-size-11{font-size:1.1rem;}
    .font-size-12{font-size:1.05rem;}
    .font-size-13{font-size:1rem;}
    .font-size-14{font-size:.95rem;}
    .font-size-15{font-size:.9rem;}
    .font-size-16{font-size:.85rem;}
    .font-size-17{font-size:.8rem;}
    .font-size-18{font-size:.75rem;}
    .font-size-19{font-size:.7rem;}
    .font-size-20{font-size:.65rem;}
}
/* ===== XL ≥1200px ===== */
@media (min-width:1200px){
    .font-size-1 {font-size:3rem;}
    .font-size-2 {font-size:2.7rem;}
    .font-size-3 {font-size:2.4rem;}
    .font-size-4 {font-size:2.1rem;}
    .font-size-5 {font-size:1.9rem;}
    .font-size-6 {font-size:1.7rem;}
    .font-size-7 {font-size:1.55rem;}
    .font-size-8 {font-size:1.4rem;}
    .font-size-9 {font-size:1.3rem;}
    .font-size-10{font-size:1.2rem;}
    .font-size-11{font-size:1.15rem;}
    .font-size-12{font-size:1.1rem;}
    .font-size-13{font-size:1.05rem;}
    .font-size-14{font-size:1rem;}
    .font-size-15{font-size:.95rem;}
    .font-size-16{font-size:.9rem;}
    .font-size-17{font-size:.85rem;}
    .font-size-18{font-size:.8rem;}
    .font-size-19{font-size:.75rem;}
    .font-size-20{font-size:.7rem;}
}


.market-post-content {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}