/* ==========================================================================
   سامانه تار و پود (Tar-o-Pood) - استایل‌های اختصاصی مدرن و شیشه‌ای (Glassmorphism)
   طراحی به روز، تعاملی، بدون رفرش و بهینه‌سازی شده برای موبایل و دسکتاپ
   ========================================================================== */

:root {
    --tp-primary: #0d9488;       /* زمردی هنری و اصیل */
    --tp-primary-light: #14b8a6;
    --tp-primary-dark: #0f766e;
    --tp-secondary: #d97706;     /* کهربایی / سفالین گرم */
    --tp-secondary-light: #f59e0b;
    --tp-accent: #6366f1;        /* بنفش خلاق */
    --tp-eco: #10b981;           /* سبز بازیافت و چرخشی */
    --tp-bg-main: #f8fafc;
    --tp-surface: #ffffff;
    --tp-surface-glass: rgba(255, 255, 255, 0.85);
    --tp-text-dark: #0f172a;
    --tp-text-muted: #64748b;
    --tp-border: #e2e8f0;
    --tp-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --tp-shadow-md: 0 8px 24px rgba(13, 148, 136, 0.08);
    --tp-shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.1);
    --tp-radius-sm: 10px;
    --tp-radius-md: 16px;
    --tp-radius-lg: 24px;
}

body.tar-o-pood-body {
    background-color: var(--tp-bg-main);
    color: var(--tp-text-dark);
    font-family: inherit;
    overflow-x: hidden;
}

/* ─── تضمین کنتراست بالا و خوانایی ۱۰۰٪ متون در تمام بخش‌ها ─── */
.tar-o-pood-body h1,
.tar-o-pood-body h2,
.tar-o-pood-body h3,
.tar-o-pood-body h4,
.tar-o-pood-body h5,
.tar-o-pood-body h6 {
    color: #0f172a;
    font-weight: 700;
}

.tar-o-pood-body p {
    color: #334155;
}

.tar-o-pood-body .text-muted {
    color: #64748b !important;
}

.tar-o-pood-body .text-dark {
    color: #0f172a !important;
}

.tar-o-pood-body .text-teal {
    color: #0d9488 !important;
}

.tar-o-pood-body .bg-teal-subtle {
    background-color: rgba(13, 148, 136, 0.12) !important;
}

.tar-o-pood-body .text-teal-emphasis {
    color: #0f766e !important;
}

/* بنر و کارت‌های تیره با متون درخشان و کاملاً خوانا */
.tp-featured-banner,
.card.tp-featured-banner,
.tar-o-pood-body .bg-dark,
.tar-o-pood-body .card.bg-dark {
    background: linear-gradient(135deg, #091e28 0%, #0f3c3a 50%, #082928 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.tp-featured-banner h1,
.tp-featured-banner h2,
.tp-featured-banner h3,
.tp-featured-banner h4,
.tp-featured-banner h5,
.tp-featured-banner h6,
.tp-featured-banner .tp-featured-title,
.card.bg-dark h1,
.card.bg-dark h2,
.card.bg-dark h3,
.card.bg-dark h4,
.card.bg-dark h5,
.card.bg-dark h6,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.tp-featured-banner p,
.tp-featured-banner .tp-featured-desc,
.card.bg-dark p,
.bg-dark p {
    color: #f1f5f9 !important;
    opacity: 0.95 !important;
}

.tp-featured-banner .text-light,
.card.bg-dark .text-light,
.bg-dark .text-light {
    color: #e2e8f0 !important;
}

.tp-featured-banner .text-muted,
.card.bg-dark .text-muted,
.bg-dark .text-muted {
    color: #cbd5e1 !important;
}

.tp-featured-banner .text-warning,
.card.bg-dark .text-warning,
.bg-dark .text-warning {
    color: #fbbf24 !important;
}

.tp-featured-banner .badge,
.card.bg-dark .badge {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ─── هدر مدرن شیشه‌ای ثابت و پایدار (بدون تغییر ارتفاع در اسکرول) ─── */
.tp-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    padding: 0.75rem 0;
    transform: translateZ(0);
    will-change: transform;
}

.tp-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(203, 213, 225, 0.9);
}

.tp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--tp-primary);
    text-decoration: none;
}

.tp-brand-badge {
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-secondary));
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* ─── هیرو سکشن مدرن ─── */
.tp-hero {
    position: relative;
    background: radial-gradient(circle at top right, rgba(13, 148, 136, 0.09), transparent 50%),
                radial-gradient(circle at bottom left, rgba(217, 119, 6, 0.08), transparent 50%),
                #ffffff;
    border-radius: 0 0 32px 32px;
    padding: 4rem 0 3.5rem 0;
    border-bottom: 1px solid var(--tp-border);
    margin-bottom: 2.5rem;
}

.tp-hero-title {
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1.35;
    color: #0f172a;
    margin-bottom: 1.2rem;
}

.tp-hero-title span {
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tp-hero-subtitle {
    font-size: 1.12rem;
    color: var(--tp-text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ─── شمارنده‌های هم‌افزایی (Synergy Stats) ─── */
.tp-stat-pill {
    background: #ffffff;
    border: 1px solid var(--tp-border);
    box-shadow: var(--tp-shadow-sm);
    padding: 0.9rem 1.4rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tp-stat-pill:hover {
    transform: translateY(-3px);
    box-shadow: var(--tp-shadow-md);
    border-color: var(--tp-primary-light);
}

.tp-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.tp-stat-icon.teal { background: rgba(13, 148, 136, 0.12); color: var(--tp-primary); }
.tp-stat-icon.amber { background: rgba(217, 119, 6, 0.12); color: var(--tp-secondary); }
.tp-stat-icon.green { background: rgba(16, 185, 129, 0.12); color: var(--tp-eco); }
.tp-stat-icon.indigo { background: rgba(99, 102, 241, 0.12); color: var(--tp-accent); }

/* ─── تب‌های دسته‌بندی تصویری (Category Pills) ─── */
.tp-cat-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 4px 20px 4px;
    scrollbar-width: thin;
}

.tp-cat-tabs::-webkit-scrollbar {
    height: 4px;
}

.tp-cat-btn {
    white-space: nowrap;
    border: 1px solid var(--tp-border);
    background: #ffffff;
    color: var(--tp-text-dark);
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: var(--tp-shadow-sm);
}

.tp-cat-btn:hover {
    border-color: var(--tp-primary);
    color: var(--tp-primary);
    transform: translateY(-2px);
}

.tp-cat-btn.active {
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-dark));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
}

/* ─── کارت‌های ظرفیت (Capacity Cards) ─── */
.tp-card {
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-md);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--tp-shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.tp-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tp-shadow-lg);
    border-color: rgba(13, 148, 136, 0.4);
}

.tp-card-media {
    position: relative;
    height: 210px;
    background: #e2e8f0;
    overflow: hidden;
}

.tp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tp-card:hover .tp-card-img {
    transform: scale(1.05);
}

.tp-card-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.tp-card-tag.eco {
    background: rgba(16, 185, 129, 0.9);
}

.tp-card-price-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--tp-primary-dark);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.tp-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tp-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tp-text-dark);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.tp-card-desc {
    color: var(--tp-text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.tp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.82rem;
    color: #64748b;
}

.tp-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #475569;
}

.tp-badge-verified {
    color: #0284c7;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ─── پکیج‌های ترکیبی تجربه (Experience Packages) ─── */
.tp-exp-card {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    border-radius: var(--tp-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--tp-shadow-lg);
}

.tp-exp-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #ffffff;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
}

/* ─── ویزارد ثبت ۳ مرحله‌ای مدرن ─── */
.tp-wizard-step {
    display: none;
    animation: tpFadeIn 0.35s ease;
}

.tp-wizard-step.active {
    display: block;
}

@keyframes tpFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tp-step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}

.tp-step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}

.tp-step-node {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #64748b;
    z-index: 2;
    transition: all 0.3s ease;
}

.tp-step-node.active {
    border-color: var(--tp-primary);
    background: var(--tp-primary);
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(13, 148, 136, 0.2);
}

.tp-step-node.completed {
    border-color: var(--tp-eco);
    background: var(--tp-eco);
    color: #ffffff;
}

/* ─── دکمه‌های شکیل ─── */
.tp-btn-primary {
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-dark));
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.tp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
    color: #ffffff;
}

.tp-btn-secondary {
    background: #ffffff;
    color: var(--tp-text-dark);
    border: 1px solid var(--tp-border);
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.tp-btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--tp-primary);
    color: var(--tp-primary);
}

/* ─── نوار ناوبری پایین صفحه برای موبایل (Mobile Bottom Nav) ─── */
.tp-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--tp-border);
    padding: 8px 12px;
    z-index: 1050;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .tp-mobile-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    body.tar-o-pood-body {
        padding-bottom: 75px;
    }
    .tp-hero-title {
        font-size: 1.85rem;
    }
}

.tp-mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--tp-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: none;
    gap: 3px;
    cursor: pointer;
}

.tp-mobile-nav-item.active,
.tp-mobile-nav-item:hover {
    color: var(--tp-primary);
}

.tp-mobile-nav-item i {
    font-size: 1.25rem;
}

.tp-mobile-nav-center {
    position: relative;
    top: -12px;
}

.tp-nav-floating-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
    margin-bottom: 2px;
}

/* ─── توست اعلان‌ها ─── */
.tp-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.tp-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ─── رنگ‌های کمکی و دکمه‌های تم ─── */
.btn-teal,
.tp-btn-teal {
    background-color: #0d9488 !important;
    border-color: #0d9488 !important;
    color: #ffffff !important;
}

.btn-teal:hover,
.tp-btn-teal:hover {
    background-color: #0f766e !important;
    border-color: #0f766e !important;
    color: #ffffff !important;
}

.btn-outline-teal {
    color: #0d9488 !important;
    border-color: #0d9488 !important;
    background-color: transparent !important;
}

.btn-outline-teal:hover {
    background-color: #0d9488 !important;
    color: #ffffff !important;
}

.border-teal {
    border-color: #0d9488 !important;
}

.bg-teal {
    background-color: #0d9488 !important;
    color: #ffffff !important;
}

.bg-teal-subtle {
    background-color: rgba(13, 148, 136, 0.12) !important;
    color: #0f766e !important;
}

.text-teal {
    color: #0d9488 !important;
}

.text-teal-emphasis {
    color: #0f766e !important;
}

/* تضمین خوانایی آکاردئون‌ها */
.accordion-button {
    color: #0f172a !important;
    font-weight: 700;
}

.accordion-button:not(.collapsed) {
    color: #0d9488 !important;
    background-color: rgba(13, 148, 136, 0.08) !important;
}

.accordion-body {
    color: #334155 !important;
}

