/* ========== arzban Front Styles ========== */

/* General */
.arzban-rate,
.arzban-updated,
.arzban-change,
.arzban-convert {
    display: inline-block;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.arzban-rate-value {
    font-weight: bold;
}

.arzban-change.positive {
    color: #00a32a;
}

.arzban-change.negative {
    color: #d63638;
}

.arzban-error {
    color: #999;
}

/* ========== Table Style ========== */
.arzban-table-front {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: Vazirmatn, Tahoma, sans-serif;
    margin: 20px 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.arzban-table-front th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 18px 20px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
}

.arzban-table-front td {
    padding: 16px 20px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    transition: background 0.2s;
}

.arzban-table-front tbody tr:hover td {
    background: #f8f9ff;
}

.arzban-table-front tbody tr:last-child td {
    border-bottom: none;
}

.arzban-table-front code {
    background: #e7f3ff;
    color: #0073aa;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.arzban-table-front strong {
    color: #1d2327;
    font-size: 16px;
}

/* ========== Cards Style ========== */
.arzban-cards-front {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.arzban-card-front {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    font-family: Vazirmatn, Tahoma, sans-serif;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 1 1 200px;
    max-width: 280px;
    position: relative;
    overflow: hidden;
}

.arzban-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.arzban-card-front:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.arzban-card-header {
    margin-bottom: 15px;
}

.arzban-card-symbol {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.arzban-card-name {
    font-weight: bold;
    display: block;
    font-size: 16px;
    color: #1d2327;
}

.arzban-card-code {
    color: #888;
    font-size: 12px;
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 5px;
}

.arzban-card-rate {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
}

.arzban-card-rate small {
    font-size: 14px;
    font-weight: normal;
    -webkit-text-fill-color: #666;
}

.arzban-card-change {
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
}

.arzban-card-change.positive {
    background: #e6f9ed;
    color: #00a32a;
}

.arzban-card-change.negative {
    background: #fde8e8;
    color: #d63638;
}

.arzban-card-updated {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* ========== Minimal Style ========== */
.arzban-minimal {
    font-family: Vazirmatn, Tahoma, sans-serif;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.arzban-minimal-item {
    white-space: nowrap;
    padding: 0 15px;
    border-left: 1px solid rgba(255,255,255,0.3);
}

.arzban-minimal-item:last-child {
    border-left: none;
}

.arzban-minimal-item strong {
    font-weight: normal;
    opacity: 0.9;
}

/* ========== Box Style ========== */
.arzban-box {
    display: inline-block;
    border-radius: 24px;
    padding: 30px 40px;
    min-width: 240px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.arzban-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.arzban-box-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.arzban-box-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.arzban-box-red {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.arzban-box-orange {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.arzban-box-purple {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
}

.arzban-box-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}

.arzban-box-symbol {
    font-size: 42px;
}

.arzban-box-name {
    font-weight: bold;
    display: block;
    font-size: 18px;
}

.arzban-box-code {
    opacity: 0.8;
    font-size: 12px;
}

.arzban-box-rate {
    font-size: 38px;
    font-weight: bold;
    margin: 20px 0;
    position: relative;
}

.arzban-box-unit {
    font-size: 16px;
    font-weight: normal;
    opacity: 0.9;
}

.arzban-box-change {
    font-size: 14px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.arzban-box-updated {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 15px;
}

/* ========== Calculator Style ========== */
.arzban-calculator {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.arzban-calc-row {
    margin-bottom: 20px;
}

.arzban-calc-row label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1d2327;
}

.arzban-calc-amount {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 18px;
    margin-bottom: 12px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    transition: border-color 0.3s;
}

.arzban-calc-amount:focus {
    outline: none;
    border-color: #667eea;
}

.arzban-calc-currency {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    cursor: pointer;
    transition: border-color 0.3s;
}

.arzban-calc-currency:focus {
    outline: none;
    border-color: #667eea;
}

.arzban-calc-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
}

.arzban-calc-label {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.arzban-calc-value {
    font-size: 32px;
    font-weight: bold;
}

.arzban-calc-unit {
    font-size: 14px;
    opacity: 0.9;
    margin-right: 5px;
}

/* ========== Rate Inline ========== */
.arzban-rate-inline {
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.arzban-rate-inline .arzban-symbol {
    opacity: 0.7;
}

.arzban-rate-inline .arzban-rate-value {
    font-weight: 700;
    color: #1d2327;
}

.arzban-rate-inline .arzban-unit {
    font-size: 0.85em;
    color: #666;
}

/* ========== Rate Badge ========== */
.arzban-rate-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 14px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    color: #fff;
}

.arzban-rate-badge.arzban-color-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.arzban-rate-badge.arzban-color-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.arzban-rate-badge.arzban-color-red {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.arzban-rate-badge.arzban-color-orange {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.arzban-rate-badge.arzban-color-purple {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
}

.arzban-badge-name {
    font-size: 13px;
    opacity: 0.9;
}

.arzban-badge-value {
    font-size: 16px;
    font-weight: 700;
}

.arzban-badge-value small {
    font-size: 12px;
    font-weight: normal;
    opacity: 0.85;
}

/* ========== Rate Full ========== */
.arzban-rate-full {
    display: inline-block;
    padding: 20px 28px;
    border-radius: 20px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    color: #fff;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.arzban-rate-full.arzban-color-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.arzban-rate-full.arzban-color-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.arzban-rate-full.arzban-color-red {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.arzban-rate-full.arzban-color-orange {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.arzban-rate-full.arzban-color-purple {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
}

.arzban-rate-full-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.arzban-rate-full-symbol {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.arzban-rate-full-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.arzban-rate-full-code {
    font-size: 11px;
    opacity: 0.8;
}

.arzban-rate-full-value {
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0;
}

.arzban-rate-full-value small {
    font-size: 14px;
    font-weight: normal;
    opacity: 0.9;
}

.arzban-rate-full-change {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255,255,255,0.2);
}

.arzban-rate-full-change.positive {
    background: rgba(0, 200, 83, 0.3);
}

.arzban-rate-full-change.negative {
    background: rgba(255, 82, 82, 0.3);
}