@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --violet-color: #8b5cf6;
    --bg-light: #f3f4f6;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}
body {
    font-family: 'Vazirmatn', sans-serif;
    background:
            radial-gradient(600px circle at 15% 20%, rgba(0, 122, 255, 0.18), transparent 40%),
            radial-gradient(700px circle at 85% 10%, rgba(175, 82, 222, 0.16), transparent 45%),
            radial-gradient(600px circle at 50% 90%, rgba(255, 159, 10, 0.14), transparent 50%),
            linear-gradient(180deg, #f5f7fa 0%, #eef2f7 100%);
    color: #1e293b;
    overflow-x: hidden;
    padding-bottom: 0;
}
a{text-decoration: none}
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
}
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 2rem;
    transition: all 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.navbar-custom {
    margin-top: 1rem;
    margin-bottom: 2rem;
}
.search-container {
    position: relative;
    background: #fff;
    border-radius: 0.75rem;
    padding: 4px;
    display: flex;
    align-items: center;
    border: 1px solid #d0d0d0;
    transition: all 0.2s ease;
}
.search-container:focus-within {
    border-color: #0a84ff;
    box-shadow:
            0 0 0 3px rgba(10, 132, 255, 0.25),
            0 4px 12px rgba(10, 132, 255, 0.15);
}
.search-container input {
    border: none;
    outline: none;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.875rem;
    background: transparent;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1rem;
}
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}
.bento-item {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
}
.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.bento-item:hover img {
    transform: scale(1.1);
}
.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}
.badge-special {
    background: rgba(220, 38, 38, 0.9);
    backdrop-filter: blur(4px);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
}
.sidebar-sticky {
    position: sticky;
    top: 100px;
}
.category-item {
    padding: 0.5rem 0.75rem !important;
    margin-bottom: 0.25rem;
}
.lang-dropdown .dropdown-toggle::after {
    display: none;
}
.lang-dropdown .dropdown-item {
    font-size: 0.8rem;
    font-weight: 600;
}
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
@media (max-width: 991.98px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-large {
        grid-column: span 1;
        grid-row: span 1;
        height: 350px;
    }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 10px 0;
}
.nav-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    transition: all 0.2s ease;
}
.nav-item-mobile i {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}
.nav-item-mobile.active {
    color: var(--primary-color);
}
@media (max-width: 991.98px) {
    .mobile-bottom-nav {
        display: block;
    }
    body {
        padding-bottom: 80px;
    }
}
.mobile-toolbar {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 500px;
    z-index: 2000;
    display: none;
}
.toolbar-inner {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 2rem;
    padding: 0.6rem 0.5rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.toolbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 800;
    flex: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toolbar-item.active {
    color: var(--primary-color);
}
.toolbar-item i {
    width: 20px;
    height: 20px;
    stroke-width: 2.2px;
}
.toolbar-center {
    position: relative;
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.plus-btn-wrapper {
    position: absolute;
    top: -38px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.plus-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--violet-color));
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
    border: 4px solid #fff;
    transition: all 0.2s ease;
}
.plus-btn:active {
    transform: scale(0.92);
    box-shadow: 0 5px 10px rgba(59, 130, 246, 0.3);
}
.toolbar-center span {
    margin-top: 14px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-color);
}
.badge-special {
    background: rgba(220, 38, 38, 0.9);
    backdrop-filter: blur(4px);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
}
@media (max-width: 991.98px) {
    body {
        padding-bottom: 110px;
    }
    .mobile-toolbar {
        display: block;
    }
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-large {
        grid-column: span 1;
        grid-row: span 1;
        height: 350px;
    }
}
.glass-dropdown .dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.15),
            0 2px 8px rgba(0, 0, 0, 0.08);
    animation: macDropdown 0.15s ease-out;
}
.glass-dropdown .dropdown-item {
    border-radius: 10px;
    font-weight: 500;
    padding: 8px 12px;
    transition: background 0.15s ease, transform 0.1s ease;
}
.glass-dropdown .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: translateX(2px);
}
.glass-dropdown .dropdown-item:active {
    background: rgba(0, 0, 0, 0.1);
}
@keyframes macDropdown {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.glass-panel {
    position: relative;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 32px rgba(0,0,0,0.05) !important;
}
.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: var(--glass-bg);
    border-radius: inherit;
    z-index: -1;
}

.sidebar-sticky h6.text-uppercase {
    color: #7c7c7c;
    position: relative;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: right;
    padding-right: 15px;
}

.sidebar-sticky h6.text-uppercase::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    background: #0c6cf8;
    border-radius: 50%;
}


.category-item.active {
    /*border: 1px solid #3b82f6 !important;*/
    /*transform: translateY(-2px);*/
    /*box-shadow: 0 4px 12px rgb(59 130 246 / 18%) !important;*/
    color: #3b82f6;
}
.backitemmenu{
    margin-bottom: 5px;
    margin-right: auto;
    padding-left: 5px;
    color: var(--bs-list-group-action-color);
}

.category-tags-wrapper a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 122, 255, 0.15);
    color: #3b82f6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}
.category-tags-wrapper a:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

/* Ø§Ø³ØªØ§ÛŒÙ„ Ø§Ø®ØªØµØ§ØµÛŒ Ø¬Ø¯ÙˆÙ„â€ŒÙ‡Ø§ÛŒ iOS */
.ios-table-wrapper {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow-x: auto; /* Ø¨Ø±Ø§ÛŒ Ø§Ø³Ú©Ø±ÙˆÙ„ Ø§ÙÙ‚ÛŒ Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ */
}
.ios-table-wrapper::-webkit-scrollbar { height: 6px; }
.ios-table-wrapper::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.ios-table {
    width: 100%;
    min-width: 600px; /* Ø¬Ù„ÙˆÚ¯ÛŒØ±ÛŒ Ø§Ø² Ø¨Ù‡Ù… Ø±ÛŒØ®ØªÚ¯ÛŒ Ø³ØªÙˆÙ† Ú¯Ø²Ø§Ø±Ø´Ø§Øª Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ */
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}
.ios-table th {
    padding: 1.2rem 1rem;
    font-weight: 700;
    color: #64748b;
    font-size: 0.85rem;
    border-bottom: 2px solid rgba(0,0,0,0.04);
    background: rgba(248, 250, 252, 0.5);
}
.ios-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.8;
    vertical-align: middle;
}
.ios-table tbody tr {
    transition: background-color 0.2s ease;
}
.ios-table tbody tr:hover {
    background-color: rgba(0, 122, 255, 0.03);
}
.ios-table tbody tr:last-child td {
    border-bottom: none;
}
/* Ø¨Ù‡ Ø³ØªÙˆÙ† Ú¯Ø²Ø§Ø±Ø´Ø§Øª Ø¹Ø±Ø¶ Ø¨ÛŒØ´ØªØ±ÛŒ Ù…ÛŒâ€ŒØ¯Ù‡ÛŒÙ… */
.report-column {
    min-width: 250px;
    color: #475569 !important;
}
/* ============================================================
   Modern iOS Payment Methods Styles
   (For mywallet.tpl & PHP Gateway Output)
============================================================ */

.payment-method-section {
    margin-top: 1rem;
}

.custom-payment-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Ú©Ø§Ø±Øª Ø¯Ø±Ú¯Ø§Ù‡ Ù¾Ø±Ø¯Ø§Ø®Øª */
.custom-control-payment {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px;
    background: #ffffff;
    border: 2px solid #e5e5ea;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    margin-bottom: 0; /* Ø±ÛŒØ³Øª Ú©Ø±Ø¯Ù† Ù…Ø§Ø±Ø¬ÛŒÙ† Ù„ÛŒØ¨Ù„ Ø¨ÙˆØªâ€ŒØ§Ø³ØªØ±Ù¾ */
}

.custom-control-payment:hover {
    border-color: rgba(0, 122, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

/* Ù…Ø®ÙÛŒ Ú©Ø±Ø¯Ù† Ø¯Ú©Ù…Ù‡ Ø±Ø§Ø¯ÛŒÙˆÛŒÛŒ Ù¾ÛŒØ´â€ŒÙØ±Ø¶ */
.custom-control-input-payment {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Ø¯Ú©Ù…Ù‡ Ø¯Ø§ÛŒØ±Ù‡â€ŒØ§ÛŒ (Ø±Ø§Ø¯ÛŒÙˆ Ø¨Ø§ØªÙ† Ú©Ø§Ø³ØªÙˆÙ…) */
.payment-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #c7c7cc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

[dir="rtl"] .payment-indicator { margin-left: 16px; }
[dir="ltr"] .payment-indicator { margin-right: 16px; }

/* Ø§Ø³ØªØ§ÛŒÙ„â€ŒÙ‡Ø§ ÙˆÙ‚ØªÛŒ Ø¯Ø±Ú¯Ø§Ù‡ Ø§Ù†ØªØ®Ø§Ø¨ Ø´Ø¯Ù‡ Ø§Ø³Øª (Checked State) */
.custom-control-input-payment:checked + .payment-indicator {
    border-color: #007aff; /* Ø±Ù†Ú¯ Ø¢Ø¨ÛŒ iOS */
}

.custom-control-input-payment:checked + .payment-indicator::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #007aff;
    border-radius: 50%;
    display: block;
    animation: scaleIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Ø§Ø³ØªØ§ÛŒÙ„ Ú©Ø§Ø±Øª Ø¯Ø±Ú¯Ø§Ù‡ ÙˆÙ‚ØªÛŒ Ø§Ú©ØªÛŒÙˆ Ø§Ø³Øª */
.custom-control-payment.active,
.custom-control-payment:has(.custom-control-input-payment:checked) {
    border-color: #007aff;
    background-color: rgba(0, 122, 255, 0.03); /* Ø¨Ú©â€ŒÚ¯Ø±Ø§Ù†Ø¯ Ø®ÛŒÙ„ÛŒ Ù…Ù„Ø§ÛŒÙ… Ø¢Ø¨ÛŒ */
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.1);
}

/* Ø¨Ø®Ø´ Ù…Ø­ØªÙˆØ§ÛŒ Ù…ØªÙ†ÛŒ Ùˆ Ø¢ÛŒÚ©ÙˆÙ† */
.payment-label-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-grow: 1;
}

.payment-label-content > div {
    display: flex;
    flex-direction: column;
}

.payment-text {
    font-weight: 800;
    color: #1c1c1e;
    font-size: 0.95rem;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.payment-subtext {
    font-size: 0.75rem;
    color: #8e8e93;
    line-height: 1.5;
}

.payment-icon {
    font-size: 1.6rem;
    color: #aeaeb2;
    transition: color 0.2s ease, transform 0.2s ease;
}

[dir="rtl"] .payment-icon { margin-right: 12px; }
[dir="ltr"] .payment-icon { margin-left: 12px; }

.custom-control-input-payment:checked ~ .payment-label-content .payment-icon {
    color: #007aff;
    transform: scale(1.1);
}

.custom-control-input-payment:checked ~ .payment-label-content .payment-text {
    color: #007aff;
}


/* ============================================================
Modern iOS Dashboard Cards (My Ads)
============================================================ */

.dashboard-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0,0,0,0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ù‡Ù…â€ŒØ§Ù†Ø¯Ø§Ø²Ù‡ Ú©Ø±Ø¯Ù† Ú©Ø§Ø±Øªâ€ŒÙ‡Ø§ Ø¯Ø± ÛŒÚ© Ø±Ø¯ÛŒÙ */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0,0,0,0.03);
}

/* Image Wrapper */
.dc-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: block;
}

.dc-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dashboard-card:hover .dc-image-wrapper img {
    transform: scale(1.05);
}

/* Time Badge on Image */
.dc-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

[dir="ltr"] .dc-badge {
    right: auto;
    left: 12px;
}

/* Card Body */
.dc-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
}

.dc-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1c1c1e;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    transition: color 0.2s;
}

.dc-title:hover {
    color: #007aff;
}

.dc-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8e8e93;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
}

.dc-meta i.material-icons {
    font-size: 16px;
    opacity: 0.8;
}

.dc-price {
    margin-top: auto;
    font-size: 1.05rem;
    font-weight: 800;
    color: #007aff;
    padding-top: 8px;
}

/* Card Footer */
.dc-footer {
    padding: 12px 16px;
    background: rgba(248, 250, 252, 0.6);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dc-status-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
}

/* Manage Button */
.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.dc-btn-primary {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.dc-btn-primary:hover {
    background: #007aff;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
    transform: translateY(-1px);
}

.dc-btn-primary i.material-icons {
    transition: transform 0.2s;
}

.dc-btn-primary:hover i.material-icons {
    transform: scale(1.1);
}
.category-selection-box::-webkit-scrollbar { width: 5px; }
.category-selection-box::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.Ucategory { margin: 0; padding: 0; }
.Ucategory ol {
    padding-right: 20px;
    border-right: 2px solid #f1f5f9;
    margin-top: 5px;
    margin-bottom: 5px;
    list-style: none;
}
.Ucategory ol.collapse {
    display: none;
}
.Ucategory ol.collapse.show {
    display: block;
    animation: iosSlideDown 0.3s cubic-bezier(0.1, 0.8, 0.2, 1);
}
@keyframes iosSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.Ucategory li.self_cat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #1c1c1e;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 4px;
    background-color: #fff;
}

.Ucategory li.self_cat:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
    transform: translateX(-4px);
}
.Ucategory li.self_cat:active {
    transform: scale(0.98);
    background-color: #f1f5f9;
}

.Ucategory li.self_cat i,
.Ucategory li.self_cat img,
.Ucategory li.self_cat svg {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: all 0.2s;
}
.Ucategory li.self_cat:hover i,
.Ucategory li.self_cat:hover svg {
    opacity: 1;
    color: var(--primary-color);
}

.Ucategory li.self_cat::after {
    content: "\f107";
    font-family: FontAwesome;
    margin-right: auto;
    color: #c7c7cc;
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}
.Ucategory li.self_cat[aria-expanded="true"]::after {
    transform: rotate(-180deg);
    color: var(--primary-color);
}
.Ucategory li.self_cat.no-sublist::after {
    display: none;
}
/* =====================================================
   Dynamic Fields (Apple / iOS Glassmorphism Style)
===================================================== */
#feildaddons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 15px;
}

@media (min-width: 768px) {
    #feildaddons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
    #feildaddons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Field Card (Glass Panel) */
#feildaddons .p-gutter {
    position: relative;
    margin: 0;
    padding: 16px;
    background: var(--ios-surface, rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

#feildaddons .p-gutter:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* Title */
#feildaddons .title-aside {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ios-text-primary, #1c1c1e);
}

#feildaddons .icon_fieldcat { display: none; }
#feildaddons .title-aside img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 6px;
}

/* Inputs & Selects (iOS Input Style) */
#feildaddons .ktr-ftr-fit,
#feildaddons .input {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    background: var(--ios-gray-fill, rgba(120, 120, 128, 0.12));
    border: 1px solid transparent;
    padding: 0 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ios-text-primary, #1c1c1e);
    outline: none;
    transition: all 0.2s ease;
}

#feildaddons .input::placeholder { color: var(--ios-text-secondary, #8e8e93); }

/* Focus State */
#feildaddons .ktr-ftr-fit:focus,
#feildaddons .input:focus {
    background-color: #fff; /* تغییر background به background-color */
    border-color: rgba(0, 122, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

/* Select Arrow */
#feildaddons .ktr-ftr-fit {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 42px;
    cursor: pointer;
}

[dir="ltr"] #feildaddons .ktr-ftr-fit {
    background-position: right 16px center;
    padding-right: 42px;
    padding-left: 16px;
}

/* Textarea */
#feildaddons textarea.input {
    min-height: 100px;
    padding-top: 14px;
    resize: vertical;
}

/* Checkbox / Radio */
#feildaddons input[type="checkbox"],
#feildaddons input[type="radio"] {
    accent-color: var(--ios-blue, #007aff);
    transform: scale(1.1);
}


.wizard-progress-wrapper { padding: 0 10px; margin-bottom: 2rem; }
.step-indicator {
    display: flex; justify-content: space-between;
    position: relative; z-index: 2;
}

/* پس زمینه خط خاموش */
.step-indicator::before {
    content: ''; position: absolute; top: 22px; left: 10px; right: 10px;
    height: 4px; background: rgba(120, 120, 128, 0.16);
    z-index: -1; border-radius: 4px;
}

/* خط پیشرفت روشن */
.step-progress-line {
    position: absolute; top: 22px; right: 10px; height: 4px;
    background: var(--ios-blue, #007aff); z-index: -1;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
    border-radius: 4px; width: 0;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
}
.step-progress-line.is-completed {
    background-color: #34c759 !important; /* iOS Green */
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.4);
}

/* نقطه‌ها (Dots) */
.step-dot {
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff; color: #8e8e93;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
    border: 2px solid rgba(120, 120, 128, 0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-dot.active {
    background: var(--ios-blue, #007aff); color: #fff;
    border-color: var(--ios-blue, #007aff);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
    transform: scale(1.15);
}

.step-dot.completed {
    background: #34c759; color: #fff;
    border-color: #34c759;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.25);
}

.step-label {
    position: absolute; top: 55px; font-size: 0.8rem;
    font-weight: 700; color: #8e8e93; white-space: nowrap;
    transition: color 0.3s;
}
.step-dot.active + .step-label { color: var(--ios-blue, #007aff); }
.step-dot.completed + .step-label { color: #34c759; }

/* استایل خطاهای حرفه‌ای (Validation) */
.is-invalid {
    border-color: #ff3b30 !important; /* iOS Red */
    background-color: rgba(255, 59, 48, 0.05) !important;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.15) !important;
    animation: iosShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes iosShake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.tagsItem a {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #64748b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tagsItem a:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* =====================================================
   iOS Custom Styles for Edit Ads Page (Premium UI)
===================================================== */
/* Segmented Control (Tabs) */
.ios-segmented-control {
    background: var(--ios-gray-fill, rgba(120, 120, 128, 0.12));
    border-radius: 12px;
    padding: 4px;
    display: inline-flex;
    width: auto;
    overflow: hidden;
}
.ios-segmented-control .nav-link {
    color: #64748b;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 24px;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ios-segmented-control .nav-link.active {
    background: #ffffff;
    color: var(--ios-text-primary, #1c1c1e);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
}

/* Settings List View (Preview Tab) */
.ios-settings-list {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}
.ios-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.2s;
}
.ios-settings-row:last-child { border-bottom: none; }
.ios-settings-row:hover { background: rgba(0, 122, 255, 0.02); }

/* Upgrade Cards */
.upgrade-card {
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.upgrade-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.upgrade-card:has(.serviceCheckbox:checked) {
    border-color: var(--ios-blue, #007aff);
    background: rgba(0, 122, 255, 0.03);
}

/* Toggle Switches */
.ios-switch {
    width: 3em !important;
    height: 1.6em !important;
    cursor: pointer;
    background-color: #e5e5ea;
    border: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}
.ios-switch:checked {
    background-color: #34c759 !important; /* iOS Green */
    border-color: transparent !important;
}

/* Sticky Save Bar (Creative UI Idea) */
.sticky-save-bar {
    position: sticky;
    bottom: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-top: 30px;
}

/* Image Drop Zone Refined */
.kt-image-drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}
.kt-image-drop-zone:hover { background: #f1f5f9; border-color: #94a3b8; }

.fade-scale { animation: fadeScale 0.4s cubic-bezier(0.1, 0.8, 0.2, 1); }
@keyframes fadeScale { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* SweetAlert2 iOS Customization */
.swal2-popup.ios-swal {
    border-radius: 24px !important;
    background: var(--ios-surface, rgba(255, 255, 255, 0.85)) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    padding: 1.5rem !important;
}

/* Premium iOS Menu Styles */
.ios-menu-wrapper {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.ios-nav-link {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.ios-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: rgba(0,0,0,0.04);
}
.ios-nav-link:last-child::after {
    display: none; /* Hide divider on last item */
}

/* Hover State */
.ios-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.02);
}
.ios-nav-link:active {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(0.98);
}

/* Active State */
.ios-nav-link.active {
    background-color: #ffffff;
}
.ios-nav-link.active .menu-title {
    color: #007aff !important; /* iOS Blue */
}
.ios-nav-link.active .icon-squircle {
    background-color: #007aff !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    transform: scale(1.05);
}
/* Active Indicator Pill (Right side for RTL) */
.ios-nav-link.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: #007aff;
}

/* Icon Box */
.icon-squircle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Uploaded Image Preview */
.kt-image-upload-preview {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}
.kt-image-upload-preview__height-enforcer {
    display: block;
    padding-bottom: 100%; /* Keeps aspect ratio */
}
.btn-delete-picture {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255, 59, 48, 0.85); /* iOS Red */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}
.kt-image-upload-preview:hover .btn-delete-picture {
    opacity: 1;
}
.btn-delete-picture:hover {
    transform: scale(1.1);
    background: rgba(255, 59, 48, 1);
}
/* Progress Overlay for uploading images */
.kt-image-upload-preview__progress-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}
.kt-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
}
.kt-progress-bar__inner {
    height: 100%;
    background: #34c759; /* iOS Green */
    transition: width 0.3s;
}