/* ======================================================================
داشبرد قیمت لحظه‌ای - پالت رنگی سیف گلد - نسخه Enterprise
====================================================================== */
.lp-wrapper {
    --lp-primary: #8D1F3C;
    --lp-primary-dark: #5C1428;
    --lp-primary-light: #B8334F;
    --lp-accent: #D4AF37;
    --lp-accent-soft: #F5E6B8;
    --lp-bg: #FFFFFF;
    --lp-card: #FBF7F3;
    --lp-text: #1F1B1D;
    --lp-muted: #8A8186;
    --lp-border: #ECE6E1;
    --lp-neutral: #B8B2AD;
    --lp-up: #059669;
    --lp-down: #DC2626;
    --lp-up-bg: rgba(5, 150, 105, 0.12);
    --lp-down-bg: rgba(220, 38, 38, 0.12);

    font-family: 'Vazirmatn FD', 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--lp-text);
    background: var(--lp-bg);
    padding: 24px;
    border-radius: 16px;
    position: relative;
    box-sizing: border-box;
    line-height: 1.6;
}

.lp-wrapper * { box-sizing: border-box; }

/* ===== Skeleton Loading ===== */
.lp-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: lp-shimmer 1.5s infinite;
    border-radius: 6px;
}

@keyframes lp-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.lp-skeleton-card { pointer-events: none; }
.lp-skeleton-name { width: 120px; height: 16px; margin-bottom: 6px; }
.lp-skeleton-unit { width: 80px; height: 12px; }
.lp-skeleton-btn { width: 28px; height: 28px; border-radius: 8px; }
.lp-skeleton-price { width: 100%; height: 28px; margin: 12px 0 8px; }
.lp-skeleton-change { width: 80px; height: 24px; }
.lp-skeleton-ticker { width: 150px; height: 24px; }
.lp-table-skeleton { padding: 0 !important; }

/* ===== هدر جدید با چیدمان 2 خطی ===== */
.lp-header-new {
    background: linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-primary-dark) 100%);
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(141,31,60,.15);
}

.lp-header-new::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(212,175,55,.25), transparent 50%);
    pointer-events: none;
}

.lp-header-row-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}

.lp-header-row-2 {
    position: relative;
    z-index: 1;
}

.lp-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lp-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.lp-subtitle {
    font-size: 14px;
    margin: 0;
    color: #ffffff;
    opacity: 0.9;
}

.lp-header-clock {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
}

.lp-btn-refresh {
    background: linear-gradient(135deg, var(--lp-accent), #B8860B);
    color: var(--lp-primary-dark);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 8px 20px rgba(212,175,55,.3);
}

.lp-btn-refresh:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(212,175,55,.4);
}

.lp-btn-refresh:active { transform: translateY(0); }

.lp-btn-refresh:disabled {
    background: var(--lp-neutral);
    color: var(--lp-muted);
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== نوار وضعیت ===== */
.lp-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--lp-card);
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 24px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(141,31,60,.04);
}

.lp-status-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.lp-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--lp-muted);
    font-weight: 500;
}

.lp-status-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--lp-up);
    animation: lp-pulse 2s infinite;
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.4);
}

@keyframes lp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== بنر هشدار ===== */
.lp-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    padding: 16px 24px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--lp-primary-dark);
    font-weight: 500;
}

.lp-alert-close {
    background: none; border: none; color: var(--lp-muted);
    font-size: 24px; cursor: pointer; padding: 0 8px;
    transition: color 0.2s;
    line-height: 1;
}

.lp-alert-close:hover { color: var(--lp-primary); }

/* ===== تیکر با افکت‌های مختلف ===== */
.lp-ticker-strip {
    overflow: hidden;
    background: var(--lp-card);
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    padding: 14px 0;
    margin-bottom: 28px;
    position: relative;
    box-shadow: 0 4px 12px rgba(141,31,60,.04);
}

.lp-ticker-track {
    display: flex;
    gap: 0;
    width: 100%;
    justify-content: space-between;
    will-change: transform, opacity;
    padding: 0 16px;
}

.lp-ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    justify-content: center;
    padding: 4px 8px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lp-ticker-name { color: var(--lp-muted); }
.lp-ticker-price { color: var(--lp-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-ticker-change { font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.lp-ticker-change.up { color: var(--lp-up); background: var(--lp-up-bg); }
.lp-ticker-change.down { color: var(--lp-down); background: var(--lp-down-bg); }

/* افکت Slide */
.lp-ticker-slide .lp-ticker-track {
    display: flex;
    gap: 40px;
    width: max-content;
    justify-content: flex-start;
}

.lp-ticker-slide .lp-ticker-item {
    flex: none;
}

/* افکت Fade */
.lp-ticker-fade .lp-ticker-item {
    opacity: 0;
    animation: lp-ticker-fade-in 0.5s ease forwards;
}

.lp-ticker-fade .lp-ticker-item.fade-out {
    animation: lp-ticker-fade-out 0.5s ease forwards;
}

@keyframes lp-ticker-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lp-ticker-fade-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* افکت Bounce */
.lp-ticker-bounce .lp-ticker-item {
    animation: lp-ticker-bounce 1.5s ease-in-out infinite;
}

@keyframes lp-ticker-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* افکت Wave */
.lp-ticker-wave .lp-ticker-item {
    animation: lp-ticker-wave 2s ease-in-out infinite;
}

.lp-ticker-wave .lp-ticker-item:nth-child(2n) { animation-delay: 0.2s; }
.lp-ticker-wave .lp-ticker-item:nth-child(3n) { animation-delay: 0.4s; }
.lp-ticker-wave .lp-ticker-item:nth-child(4n) { animation-delay: 0.6s; }

@keyframes lp-ticker-wave {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    75% { transform: translateY(3px); }
}

/* ===== تب‌ها ===== */
.lp-tab-nav {
    display: flex;
    gap: 6px;
    background: var(--lp-card);
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 28px;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(141,31,60,.04);
}

.lp-tab-btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--lp-muted);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.lp-tab-btn.active {
    background: var(--lp-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(141,31,60,.2);
}

.lp-tab-btn:hover:not(.active) { color: var(--lp-text); background: rgba(141,31,60,.05); }

/* ===== کارت‌ها ===== */
.lp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.lp-card {
    background: var(--lp-card);
    border: 2px solid var(--lp-border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 4px 12px rgba(141,31,60,.06);
    min-width: 0;
    
    /* اصلاح باگ: راست به چپ کردن محتوای کارت */
    direction: rtl;
    text-align: right;
}

.lp-card:hover {
    background: var(--lp-accent-soft);
    border-color: var(--lp-accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(141,31,60,.15);
}

.lp-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 8px;
}

.lp-card-symbol {
    flex: 1;
    min-width: 0;
}

.lp-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--lp-text);
    margin-bottom: 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-card-unit {
    font-size: 12px;
    color: var(--lp-muted);
    font-weight: 500;
}

.lp-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.lp-card-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--lp-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(141,31,60,.2);
}

.lp-card-action-btn:hover {
    background: var(--lp-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(141,31,60,.3);
}

.lp-card-action-btn:active { transform: translateY(0); }
.lp-card-action-btn svg { width: 14px; height: 14px; }

.lp-card-change-badge {
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 8px;
}

.lp-change-up { color: var(--lp-up); background: var(--lp-up-bg); }
.lp-change-down { color: var(--lp-down); background: var(--lp-down-bg); }

.lp-card-price {
	 justify-self:right;
    font-size: 24px;
    font-weight: 800;
    color: var(--lp-primary-dark);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
    direction: rtl;
    text-align: right;
    letter-spacing: -0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* اصلاح باگ: واحد در سمت چپ قیمت */
    display: flex;
    align-items: baseline;
    justify-content: flex-end; /* اعداد از راست تراز شوند اما واحد به چپ برود */
}

.lp-card-price span {
    font-size: 13px;
    font-weight: 500;
    color: var(--lp-muted);
    margin-right: 12px;
    margin-left: 4px;
}

/* ===== چیدمان جداول 2x2 ===== */
.lp-tables-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    margin-bottom: 36px;
}

.lp-table-container {
    background: var(--lp-card);
    border: 2px solid var(--lp-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(141,31,60,.06);
    min-width: 0;
}

.lp-table-header {
    padding: 18px 24px;
    border-bottom: 2px solid var(--lp-border);
    background: var(--lp-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lp-table-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    flex: 1;
}

.lp-table-info-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.2s;
    flex-shrink: 0;
}

.lp-table-info-btn:hover {
    background: rgba(255,255,255,.25);
    transform: scale(1.05);
}

.lp-table-info-btn svg { width: 16px; height: 16px; }

.lp-table { width: 100%; border-collapse: collapse; }

.lp-table thead th {
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-align: right;
    background: var(--lp-primary);
    border-bottom: 2px solid var(--lp-border);
}

.lp-table tbody tr { transition: background 0.2s; }
.lp-table tbody tr:hover { background: rgba(141, 31, 60, 0.06); }

.lp-table tbody td {
    padding: 16px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--lp-border);
    color: var(--lp-text);
    font-weight: 500;
}

.lp-table tbody tr:last-child td { border-bottom: none; }
.lp-table-price { font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; text-align: right; }

/* ===== مبدل ===== */
.lp-converter-container {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.lp-converter {
    background: var(--lp-card);
    border: 2px solid var(--lp-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(141,31,60,.06);
    height: 100%;
}

.lp-conv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.lp-conv-title { font-size: 18px; font-weight: 700; margin: 0; color: var(--lp-primary-dark); flex: 1; }

.lp-conv-header-actions { 
    display: flex; 
    gap: 8px; 
}

.lp-conv-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--lp-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(141,31,60,.2);
    flex-shrink: 0;
}

.lp-conv-action-btn:hover {
    background: var(--lp-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(141,31,60,.3);
}

.lp-conv-action-btn:active { transform: translateY(0); }
.lp-conv-action-btn svg { width: 16px; height: 16px; }

.lp-conv-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.lp-conv-group { flex: 1; min-width: 120px; }

.lp-conv-group label { display: block; font-size: 13px; color: var(--lp-muted); margin-bottom: 8px; font-weight: 600; }

.lp-conv-input, .lp-conv-select {
    width: 100%;
    background: #ffffff;
    border: 2px solid var(--lp-border);
    border-radius: 12px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-text);
    outline: none;
    direction: ltr;
    text-align: right;
    transition: all 0.25s;
}

.lp-conv-input:focus, .lp-conv-select:focus {
    border-color: var(--lp-primary);
    box-shadow: 0 0 0 4px rgba(141,31,60,.1);
}

/* دکمه ریورس دسکتاپ */
.lp-conv-reverse-desktop {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--lp-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(141,31,60,.25);
}

.lp-conv-reverse-desktop:hover {
    background: var(--lp-primary-dark);
    transform: rotate(180deg);
    box-shadow: 0 8px 20px rgba(141,31,60,.35);
}

.lp-conv-reverse-desktop:active {
    transform: rotate(180deg) scale(0.95);
}

.lp-conv-reverse-desktop svg { width: 20px; height: 20px; }

/* دکمه ریورس موبایل (به صورت پیش‌فرض مخفی) */
.lp-conv-reverse-mobile {
    display: none;
}

.lp-conv-result {
    margin-top: 20px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    text-align: center;
}

.lp-conv-result label { font-size: 13px; color: var(--lp-muted); display: block; margin-bottom: 6px; font-weight: 600; }

.lp-conv-result-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--lp-primary-dark);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    word-break: break-word;
}

/* ===== فوتر ===== */
.lp-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 2px solid var(--lp-border);
}

.lp-footer-text { font-size: 13px; color: var(--lp-muted); margin-bottom: 12px; font-weight: 500; }

.lp-footer-disclaimer {
    font-size: 12px;
    color: var(--lp-muted);
    padding: 16px;
    background: rgba(220, 38, 38, 0.06);
    border: 2px solid rgba(220, 38, 38, 0.15);
    border-radius: 12px;
    line-height: 1.8;
}

/* ===== مودال ===== */
.lp-modal {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lp-modal.show {
    display: flex;
    animation: lp-modal-fade-in 0.3s ease;
}

@keyframes lp-modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(31,27,29,.7);
    backdrop-filter: blur(6px);
}

.lp-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 36px;
    max-width: 540px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(141,31,60,.25);
    animation: lp-modal-slide-up 0.3s ease;
    border: 2px solid var(--lp-border);
}

@keyframes lp-modal-slide-up {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* کانتینر دکمه‌های بالای مودال */
.lp-modal-header-actions {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.lp-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--lp-card);
    border: 2px solid var(--lp-border);
    font-size: 24px;
    color: var(--lp-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.lp-modal-close:hover {
    background: var(--lp-primary);
    color: #ffffff;
    border-color: var(--lp-primary);
}

/* دکمه کپی بالای مودال (فقط در موبایل نمایش داده می‌شود) */
.lp-modal-copy-top {
    display: none; /* به صورت پیش‌فرض مخفی */
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--lp-primary);
    border: none;
    color: #ffffff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(141,31,60,.2);
}

.lp-modal-copy-top:hover {
    background: var(--lp-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(141,31,60,.3);
}

.lp-modal-copy-top svg {
    width: 16px;
    height: 16px;
}

.lp-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--lp-primary-dark);
    margin: 0 0 20px 0;
    padding-left: 90px; /* فضای کافی برای دکمه‌های بالا */
    line-height: 1.4;
}

.lp-modal-body {
    font-size: 15px;
    line-height: 2;
    color: var(--lp-text);
}

.lp-modal-body h4 {
    color: var(--lp-primary);
    margin: 20px 0 10px 0;
    font-size: 16px;
    font-weight: 700;
}

.lp-modal-body p { margin: 10px 0; }
.lp-modal-body ul, .lp-modal-body ol { margin: 10px 0; padding-right: 20px; }
.lp-modal-body li { margin: 6px 0; }
.lp-modal-body strong { color: var(--lp-primary-dark); font-weight: 700; }

.lp-modal-stats {
    margin-top: 20px;
    padding: 16px;
    background: var(--lp-card);
    border: 1px solid var(--lp-border);
    border-radius: 12px;
}

.lp-modal-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--lp-border);
}

.lp-modal-stat-item:last-child { border-bottom: none; }
.lp-modal-stat-label { font-size: 13px; color: var(--lp-muted); font-weight: 500; }

.lp-modal-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--lp-text);
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.lp-modal-footer {
    margin-top: 20px;
    padding-top: 16px;
    /* اصلاح باگ: حذف خط جداکننده (divider) */
    border-top: none; 
    display: flex;
    justify-content: center;
}

.lp-modal-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--lp-primary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(141,31,60,.2);
}

.lp-modal-copy-btn:hover {
    background: var(--lp-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(141,31,60,.3);
}

.lp-modal-copy-btn svg { width: 16px; height: 16px; }

/* ===== Toast ===== */
.lp-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--lp-primary-dark);
    color: #fff;
    padding: 14px 28px;
    border-radius: 32px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 16px 40px rgba(141,31,60,.35);
    z-index: 999999;
    opacity: 0;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
}

.lp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ======================================================================
ریسپانسیو حرفه‌ای
====================================================================== */
@media (max-width: 1024px) {
    .lp-wrapper { padding: 20px; }
    .lp-header-new { padding: 20px 22px; }
    .lp-title { font-size: 20px; }
    .lp-cards-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
    .lp-tables-layout { grid-template-columns: 1fr; }
    .lp-converter-container { grid-column: 1 / 2; grid-row: auto; }
}

@media (max-width: 768px) {
    .lp-wrapper { padding: 14px; }

    /* هدر موبایل */
    .lp-header-new { padding: 16px 18px; border-radius: 14px; margin-bottom: 16px; }
    .lp-header-row-1 { gap: 10px; margin-bottom: 8px; }
    .lp-title { font-size: 17px; }
    .lp-subtitle { font-size: 12px; }
    .lp-header-clock { padding: 8px 14px; font-size: 13px; }
    .lp-btn-refresh { padding: 10px 16px; font-size: 13px; }

    .lp-mobile-hide-clock .lp-header-clock { display: none !important; }

    /* نوار وضعیت موبایل */
    .lp-status-bar { padding: 12px 16px; font-size: 13px; margin-bottom: 16px; }
    .lp-status-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .lp-status-item { font-size: 13px; }

    .lp-status-info {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }

    .lp-item-connection { grid-column: 1 / 2; }
    .lp-item-date { grid-column: 2 / 3; }
    .lp-item-last-update { grid-column: 1 / 3; }
    .lp-item-next-update { grid-column: 1 / 3; }

    .lp-mobile-hide-next-update .lp-item-next-update { display: none !important; }
    .lp-mobile-hide-connection .lp-item-connection { display: none !important; }
    .lp-mobile-hide-date .lp-item-date { display: none !important; }
    .lp-mobile-hide-last-update .lp-item-last-update { display: none !important; }
    .lp-mobile-hide-status-bar .lp-status-bar { display: none !important; }
    .lp-mobile-hide-header .lp-header-new { display: none !important; }
    .lp-mobile-hide-refresh-btn .lp-btn-refresh { display: none !important; }

    /* بنر هشدار */
    .lp-alert { padding: 12px 16px; font-size: 13px; }

    /* تیکر */
    .lp-ticker-strip { padding: 10px 0; margin-bottom: 20px; }
    .lp-ticker-item { font-size: 13px; gap: 6px; padding: 3px 4px; }
    .lp-ticker-track { padding: 0 8px; }

    /* تب‌ها */
    .lp-tab-nav { padding: 4px; margin-bottom: 20px; }
    .lp-tab-btn { padding: 10px 16px; font-size: 13px; }

    /* کارت‌ها */
    .lp-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 24px;
    }

    .lp-card {
        padding: 14px;
        border-radius: 12px;
        min-width: 0;
        overflow: hidden;
    }

    .lp-card-top { margin-bottom: 10px; gap: 6px; }
    .lp-card-name { font-size: 13px; }
    .lp-card-unit { font-size: 11px; }
    .lp-card-price { justify-self: right; font-size: 16px; margin-bottom: 6px; }
    .lp-card-change-badge { font-size: 11px; padding: 4px 8px; }
    .lp-card-actions { gap: 4px; }
    .lp-card-action-btn { width: 24px; height: 24px; }
    .lp-card-action-btn svg { width: 12px; height: 12px; }

    .lp-mobile-hide-copy-btn .lp-btn-copy { display: none !important; }

    /* جداول */
    .lp-tables-layout { grid-template-columns: 1fr; gap: 16px; }
    .lp-table-container { border-radius: 12px; }
    .lp-table-header { padding: 14px 16px; }
    .lp-table-title { font-size: 15px; }
    .lp-table thead th, .lp-table tbody td { padding: 10px 14px; font-size: 12px; }

    /* مبدل موبایل */
    .lp-converter-container { grid-column: 1 / 2; }
    .lp-converter { padding: 18px; border-radius: 12px; }
    .lp-conv-title { font-size: 16px; }
    
    .lp-conv-row { flex-direction: column; gap: 10px; }
    .lp-conv-group { min-width: 100%; }
    .lp-conv-input, .lp-conv-select { padding: 12px 14px; font-size: 14px; }

    /* مخفی کردن ریورس دسکتاپ و نمایش ریورس موبایل */
    .lp-conv-reverse-desktop {
        display: none !important;
    }
    
    .lp-conv-reverse-mobile {
        display: flex !important;
    }

    .lp-conv-result { padding: 16px; }
    .lp-conv-result-value { font-size: 20px; }

    /* فوتر */
    .lp-footer { padding-top: 18px; }
    .lp-footer-text { font-size: 12px; }
    .lp-footer-disclaimer { font-size: 11px; padding: 12px; }

    /* مودال موبایل */
    .lp-modal-content { padding: 24px; border-radius: 16px; }
    
    /* نمایش دکمه کپی بالای مودال در موبایل */
    .lp-modal-copy-top {
        display: flex;
    }
    
    .lp-modal-title { 
        font-size: 17px; 
        padding-left: 90px; 
    }
    
    .lp-modal-body { font-size: 14px; }
    .lp-toast { padding: 12px 24px; font-size: 14px; }
}

@media (max-width: 480px) {
    .lp-wrapper { padding: 12px; }
    .lp-header-new { padding: 14px 16px; }
    .lp-title { font-size: 16px; }
    .lp-subtitle { font-size: 11px; }
    .lp-header-clock { display: none; }
    .lp-btn-refresh { padding: 8px 14px; font-size: 12px; }
    .lp-cards-grid { gap: 8px; }
    .lp-card { padding: 12px; }
    .lp-card-price { justify-self:right; font-size: 15px; }
    .lp-card-name { font-size: 12px; }
    .lp-card-action-btn { width: 22px; height: 22px; }
    .lp-card-action-btn svg { width: 11px; height: 11px; }
}

@media (max-width: 360px) {
    .lp-wrapper { padding: 10px; }
    .lp-header-new { padding: 12px 14px; }
    .lp-title { font-size: 15px; }
    .lp-card { padding: 10px; }
    .lp-card-price {  justify-self:right; font-size: 14px; }
    .lp-card-name { font-size: 11px; }
}