@font-face {
    font-family: 'YekanBakh';
    src: url('fonts/YekanBakhFaNum-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* تعریف حالت ضخیم (Bold) فونت */
@font-face {
    font-family: 'YekanBakh';
    src: url('fonts/YekanBakhFaNum-SemiBold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

/* تعریف حالت سیمی بولد (Bold) فونت */
@font-face {
    font-family: 'YekanBakh';
    src: url('fonts/YekanBakhFaNum-SemiBold.woff2') format('woff2');
    font-weight: semibold;
    font-style: normal;
}

:root {
    --primary: #2d3436;
    --accent: #6c5ce7;
    --accent-success: #00b894;
    --bg: #f4f7f6;
    --card-bg: #ffffff;
    --border: #e0e0e0;
}

body {
    font-family: 'YekanBakh', Tahoma, Geneva, sans-serif;
    background-color: var(--bg);
    margin: 0;
    display: flex;
    justify-content: center;
}

a {
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 720px;
    background: var(--card-bg);
    padding: 24px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

/* هدرها */
.header-section {
    text-align: center;
    margin-bottom: 25px;
}

.back-btn {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
    color: var(--accent);
    font-weight: bold;
    font-size: 0.9rem;
}

/* فیلد جستجو */
#linkSearch {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: 0.3s;
}

#linkSearch:focus { border-color: var(--accent); }

/* تب‌ها */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tab-btn {
    padding: 6px 16px;
    border: none;
    background: #eee;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    white-space: nowrap;
    font-size: 0.8rem;
}

.tab-btn.active {
    background: var(--accent);
    color: white;
}

/* کارت‌های لینک و پروفایل */
.card {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: 0.2s;
    background: #fff;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.logo-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-left: 15px;
    background: #f0f0f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-box img { width: 100%; height: 100%; object-fit: cover; }

.details { flex-grow: 1; text-align: right; }
.details b { display: block; font-size: 1.05rem; margin-bottom: 4px; }

.author-link {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 4px;
}

.item-desc { font-size: 0.85rem; color: #636e72; line-height: 1.5; }

.badge {
    font-size: 0.7rem;
    background: #f1f1f1;
    padding: 4px 8px;
    border-radius: 6px;
    color: #777;
    font-weight: bold;
}

.author-name {
    font-size: 0.75rem;
}

#noResults { display: none; text-align: center; padding: 20px; color: #999; }

.filter-label {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary);
    margin: 15px 0 8px 0;
}

/* بهبود اسکرول تب‌ها */
.tabs {
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}


/* author page  */

.author-header { background: #fff; padding: 30px; border-radius: 20px; margin-bottom: 25px; border: 1px solid var(--border); text-align: center;}
.author-logo { width: 80px; height: 80px; background: var(--accent-success); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 15px; }


.pricing-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.price-card {
    background: #fff;
    border: 2px solid var(--border);
    text-align: center;
    transition: 0.3s;
    border-radius: 15px;
    padding: 24px;
}


.contact-methods {
    margin-top: 25px;
    text-align: center;
    color: #e33;
}

.method-card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--primary);
    transition: 0.3s;
}

.method-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.1);
}

.method-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.method-name {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.method-id {
    font-size: 0.85rem;
    color: var(--accent);
    font-family: sans-serif;
}

.info-box {
    background: #fdf6e3;
    border-right: 5px solid #b58900;
    padding: 15px;
    margin-top: 30px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* کانتینر پلن‌ها */
.pricing-container {
    display: flex;
    margin-top: 30px;
    justify-content: space-between;
    gap: 16px;
    @media (max-width: 480px) {
        flex-direction: column;
    }
}

.price-card.featured {
    border: 2px solid var(--accent);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.15);
}

.badge-popular {
    position: absolute;
    top: -12px;
    right: 50%;
    transform: translateX(50%);
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 10px;
    z-index: 999;
}

.price-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #636e72;
}

.price-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);
}

.price-value span {
    font-size: 0.8rem;
    color: #999;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    font-size: 0.75rem;
    line-height: 2;
    text-align: center;
    color: #666;
}

/* بخش شماره کارت */
.payment-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    border: 1px dashed var(--border);
}

.card-number-wrapper {
    background: #fff;
    border: 2px solid var(--accent);
    display: inline-block;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    transition: 0.2s;
}

.card-number-wrapper:active {
    transform: scale(0.98);
}

.copy-hint {
    display: block;
    font-size: 0.7rem;
    font-family: 'MainFont', sans-serif;
    letter-spacing: 0;
    color: var(--accent);
    margin-top: 5px;
}

.price-card.popular {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.1);
}

.price-card.popular::before {
    content: "پیشنهادی";
    background: var(--accent);
    color: white;
    position: absolute;
    top: 10px;
    right: -25px;
    transform: rotate(45deg);
    padding: 2px 30px;
    font-size: 0.7rem;
}

.price-card h3 { margin: 0; font-size: 1rem; color: #555; }
.price-card .price { font-size: 1.5rem; font-weight: bold; color: var(--primary); margin: 15px 0; }
.price-card .price span { font-size: 0.8rem; color: #999; }

/* استایل بخش شماره کارت */
.payment-box {
    background: #f8f9fa;
    border: 1px dashed var(--accent);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.card-number {
    display: inline-block;
    font-family: monospace;
    font-size: 1.4rem;
    letter-spacing: 2px;
    background: #eee;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 10px 0;
    cursor: pointer;
    position: relative;
}

.card-number:active { transform: scale(0.98); }

.copy-hint { font-size: 0.75rem; color: var(--accent); display: block; margin-top: 5px; }


/* UTILS */

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gap-2 {
    gap: 4px;
}