/*
 * Wallex Crypto Pro Styles
 */
.wcp-crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 15px;
    border-radius: 12px;
    direction: rtl;
    text-align: right;
}

.wcp-grid-loading, .wcp-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #555;
    font-size: 1.1em;
}

.wcp-error {
    color: #e74c3c !important;
    background-color: #fceceb;
    border: 1px solid #e74c3c;
    border-radius: 8px;
}

.wcp-crypto-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.wcp-crypto-box:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.symbol-icon {
    width: 32px;
    height: 32px;
    margin-left: 10px;
    order: -1;
}

.symbol-name {
    font-size: 1.4em;
    font-weight: 700;
    color: #2c3e50;
    flex-grow: 1;
}

.symbol-code {
    font-size: 0.95em;
    color: #7f8c8d;
    background-color: #ecf0f1;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: monospace;
}

.box-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.current-price {
    font-size: 2.8em;
    font-weight: 900;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 6px;
    transition: background-color 0.5s ease;
}

.quote-asset-unit {
    font-size: 1.2em;
    color: #7f8c8d;
    align-self: flex-start;
    padding-top: 10px;
}

.price-up {
    color: #2ecc71;
}
.price-down {
    color: #e74c3c;
}

.price-up.highlight {
    background-color: #e8f8f5;
}
.price-down.highlight {
    background-color: #fceceb;
}

.box-stats {
    border-top: 1px dashed #e0e0e0;
    padding-top: 10px;
    margin-bottom: 5px; /* کاهش Margin */
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 1em;
    margin-bottom: 7px;
}

.stat-item .label {
    color: #7f8c8d;
}

.stat-item .value {
    font-weight: bold;
    color: #34495e;
}

/* استایل برای اطلاعات Bid/Ask */
.stat-item.bid-ask .value {
    font-size: 0.9em;
}
.bid-price {
    color: #2ecc71;
}
.ask-price {
    color: #e74c3c;
}