:root {
    --primary-v2: #800020;
    --gold-v2: #D4AF37;
    --bg-v2: #F5F5F5;
}
.daily-prices-container-v2 {
    direction: rtl;
    font-family: 'Vazir', Tahoma, sans-serif;
    background: var(--bg-v2);
    min-height: 100vh;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.daily-prices-container-v2 * { box-sizing: border-box; }

.daily-prices-header-v2 {
    background: var(--primary-v2);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 4px solid var(--gold-v2);
}
.daily-prices-header-v2 h1 { margin: 0; font-size: 20px; font-weight: 700; }
.back-to-shop-btn-v2 {
    background: var(--gold-v2);
    color: var(--primary-v2);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: 2px solid white;
}
.back-to-shop-btn-v2:hover { transform: scale(1.05); background: #e6c44d; }

.daily-search-input-v2 {
    width: 100%;
    padding: 15px 20px;
    border: 3px solid var(--gold-v2);
    border-radius: 12px;
    font-size: 18px;
    margin-bottom: 20px;
    background: white;
    transition: all 0.3s;
}
.daily-search-input-v2:focus { outline: none; border-color: var(--primary-v2); box-shadow: 0 0 0 3px rgba(128,0,32,0.1); }

.daily-prices-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.daily-price-card-v2 {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.daily-price-card-v2:hover {
    border-color: var(--gold-v2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.daily-price-card-v2 .product-image-v2 {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid #eee;
    background: #f8f9fa;
}
.daily-price-card-v2 .product-title-v2 {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 6px;
    height: 44px;
    overflow: hidden;
    cursor: default;
}
.price-change-badge-v2 {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 8px;
}
.price-change-up-v2 { background: #dc3545; color: white; }
.price-change-down-v2 { background: #28a745; color: white; }
.price-change-stable-v2 { background: #6c757d; color: white; }

.daily-price-card-v2 .price-section-v2 {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.daily-price-card-v2 .price-item-v2 {
    background: var(--bg-v2);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid #ddd;
}
.daily-price-card-v2 .price-item-v2 .label-v2 { color: #666; font-weight: 600; }
.daily-price-card-v2 .price-item-v2 .value-v2 { color: var(--primary-v2); font-weight: 700; }
.daily-price-card-v2 .update-date-v2 {
    color: #666;
    font-size: 11px;
    margin-top: 5px;
    border-top: 1px solid #eee;
    padding-top: 8px;
}
.card-actions-v2 {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.card-actions-v2 .btn-chart-v2 {
    background: var(--primary-v2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    border: 2px solid var(--gold-v2);
}
.card-actions-v2 .btn-chart-v2:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(128,0,32,0.3); }
.card-actions-v2 .btn-update-v2 {
    background: linear-gradient(135deg, #2ecc71, #3498db);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    border: 2px solid var(--gold-v2);
}
.card-actions-v2 .btn-update-v2:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(46,204,113,0.4); }

/* مودال نمودار */
.daily-chart-modal-v2 {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,26,26,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 10px;
    backdrop-filter: blur(10px);
}
.daily-chart-modal-content-v2 {
    background: white;
    border-radius: 15px;
    padding: 25px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 3px solid var(--gold-v2);
}
.daily-chart-modal-content-v2 h2 {
    color: var(--primary-v2);
    margin-bottom: 5px;
    text-align: center;
}
.daily-chart-modal-content-v2 .chart-info-v2 {
    text-align: center;
    margin-bottom: 15px;
    color: #555;
    font-size: 14px;
}
.daily-chart-modal-content-v2 .chart-container-v2 {
    position: relative;
    height: 250px;
    margin-bottom: 15px;
}
.daily-chart-modal-content-v2 .close-chart-btn-v2 {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    width: 100%;
    font-size: 16px;
}
.daily-chart-modal-content-v2 .close-chart-btn-v2:hover { background: #c82333; }

/* مودال درخواست تغییر قیمت */
.daily-price-modal-v2 {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,26,26,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3001;
    padding: 10px;
    backdrop-filter: blur(10px);
}
.daily-price-modal-content-v2 {
    background: white;
    border-radius: 15px;
    padding: 25px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 3px solid #D4AF37;
}
.daily-price-modal-content-v2 h2 { color: #800020; margin-bottom: 15px; text-align: center; }
.daily-price-modal-content-v2 .form-group-v2 { margin-bottom: 15px; }
.daily-price-modal-content-v2 .form-group-v2 label { display: block; font-weight: 700; margin-bottom: 5px; }
.daily-price-modal-content-v2 .form-group-v2 input, 
.daily-price-modal-content-v2 .form-group-v2 textarea { 
    width: 100%; padding: 10px; border: 2px solid #ddd; border-radius: 8px; font-size: 14px; 
}
.daily-price-modal-content-v2 .form-group-v2 input:focus { border-color: #D4AF37; outline: none; }
.daily-price-modal-content-v2 .form-group-v2 .image-upload-v2 {
    border: 2px dashed #ddd; padding: 20px; text-align: center; border-radius: 8px; 
    cursor: pointer; transition: all 0.3s;
}
.daily-price-modal-content-v2 .form-group-v2 .image-upload-v2:hover { border-color: #D4AF37; background: #f8f9fa; }
.daily-price-modal-content-v2 .form-group-v2 .image-preview-v2 { margin-top: 10px; text-align: center; }
.daily-price-modal-content-v2 .modal-actions-v2 { display: flex; gap: 10px; margin-top: 20px; justify-content: center; }
.daily-price-modal-content-v2 .modal-actions-v2 button { 
    padding: 12px 25px; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; 
    transition: all 0.3s; min-width: 120px;
}
.daily-price-modal-content-v2 .modal-actions-v2 .btn-submit-v2 {
    background: linear-gradient(135deg, #2ecc71, #3498db); color: white; border: 2px solid #D4AF37;
}
.daily-price-modal-content-v2 .modal-actions-v2 .btn-submit-v2:hover { transform: translateY(-2px); }
.daily-price-modal-content-v2 .modal-actions-v2 .btn-cancel-v2 { background: #666; color: white; border: 2px solid #999; }
.daily-price-modal-content-v2 .modal-actions-v2 .btn-cancel-v2:hover { background: #555; }
.daily-price-modal-content-v2 .success-message-v2 { background: #2ecc71; color: white; padding: 10px; border-radius: 8px; text-align: center; margin-top: 10px; }
.daily-price-modal-content-v2 .error-message-v2 { background: #dc3545; color: white; padding: 10px; border-radius: 8px; text-align: center; margin-top: 10px; }

@media (max-width: 768px) {
    .daily-prices-header-v2 { flex-direction: column; text-align: center; }
    .daily-prices-grid-v2 { grid-template-columns: 1fr; }
    .daily-chart-modal-content-v2 { padding: 15px; }
}