.sacc-wrap {
    --sacc-green: #2D6A4F;
    --sacc-green-light: #52B788;
    --sacc-green-pale: #D8F3DC;
    --sacc-cream: #F8F5F0;
    --sacc-gold: #C9A84C;
    --sacc-text: #1B2C24;
    --sacc-text-muted: #6B7B73;
    --sacc-border: #D4E6DC;
    --sacc-danger: #E05C5C;
    direction: rtl;
    font-family: Tahoma, 'Vazirmatn', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}
* { box-sizing: border-box; }

/* ===== نوار پیشرفت ===== */
.sacc-progress-card {
    background: linear-gradient(135deg, var(--sacc-green), #1B4332);
    border-radius: 14px;
    padding: 20px 24px;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(45,106,79,.2);
}
.sacc-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.sacc-progress-role { font-size: 16px; font-weight: bold; }
.sacc-progress-points { font-size: 13px; opacity: .9; }
.sacc-progress-bar { height: 10px; background: rgba(255,255,255,.25); border-radius: 10px; overflow: hidden; }
.sacc-progress-fill { height: 100%; background: linear-gradient(90deg, var(--sacc-gold), #F0D888); border-radius: 10px; transition: width .5s ease; }
.sacc-progress-note { font-size: 12px; margin: 10px 0 0; opacity: .9; }

/* ===== تب‌ها ===== */
.sacc-tabs-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.sacc-tab-btn {
    flex: 1;
    min-width: 130px;
    padding: 12px 14px;
    background: var(--sacc-cream);
    border: 1.5px solid var(--sacc-border);
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: var(--sacc-text-muted);
    transition: all .2s;
    white-space: nowrap;
    text-align: center;
}
.sacc-tab-btn:hover { background: var(--sacc-green-pale); }
.sacc-tab-btn.active {
    background: var(--sacc-green);
    color: #fff;
    border-color: var(--sacc-green);
    font-weight: bold;
}
.sacc-tab-panel { display: none; }
.sacc-tab-panel.active { display: block; }

/* ===== کارت ===== */
.sacc-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(45,106,79,.1);
    padding: 22px;
    border: 1px solid var(--sacc-border);
    margin-bottom: 18px;
}
.sacc-card-title { font-size: 15px; font-weight: bold; color: var(--sacc-green); margin: 0 0 16px; }

/* ===== پروفایل ===== */
.sacc-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .sacc-profile-grid { grid-template-columns: 1fr; } }
.sacc-info-box { display: flex; align-items: center; gap: 12px; background: var(--sacc-cream); border-radius: 10px; padding: 12px 14px; }
.sacc-info-icon { font-size: 22px; }
.sacc-info-label { font-size: 11px; color: var(--sacc-text-muted); }
.sacc-info-value { font-size: 14px; font-weight: bold; color: var(--sacc-text); margin-top: 2px; }

/* ===== تبدیل امتیاز ===== */
.sacc-balance-box {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--sacc-green-pale); border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--sacc-green);
}
.sacc-balance-box strong { font-size: 18px; }
.sacc-field { margin-bottom: 14px; }
.sacc-field label { display: block; font-size: 13px; font-weight: bold; color: var(--sacc-text); margin-bottom: 6px; }
.sacc-field input {
    width: 100%; padding: 10px 12px; border: 1.5px solid var(--sacc-border); border-radius: 8px;
    font-size: 14px; font-family: inherit; direction: rtl;
}
.sacc-field input:focus { outline: none; border-color: var(--sacc-green-light); box-shadow: 0 0 0 3px rgba(82,183,136,.12); }
.sacc-preview-box { background: #FEF3C7; color: #92400E; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin: 10px 0; text-align: center; }
.sacc-history-list { display: flex; flex-direction: column; gap: 8px; }
.sacc-history-item { background: var(--sacc-cream); border-radius: 8px; padding: 10px 14px; font-size: 13px; }
.sacc-history-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--sacc-text-muted); margin-top: 4px; }

/* ===== دکمه‌ها ===== */
.sacc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: 8px; border: none; cursor: pointer;
    font-size: 14px; font-family: inherit; transition: opacity .2s, transform .1s; text-decoration: none;
}
.sacc-btn:hover { opacity: .88; transform: translateY(-1px); }
.sacc-btn-primary { background: var(--sacc-green); color: #fff; }
.sacc-btn-secondary { background: var(--sacc-green-pale); color: var(--sacc-green); }
.sacc-btn-full { width: 100%; }
.sacc-btn-sm { padding: 5px 12px; font-size: 12px; }
.sacc-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== پیام‌ها ===== */
.sacc-message { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin: 10px 0; display: none; }
.sacc-message.success { background: var(--sacc-green-pale); color: var(--sacc-green); display: block; }
.sacc-message.error { background: #FEE2E2; color: #B91C1C; display: block; }
.sacc-notice { padding: 14px; background: var(--sacc-cream); border-radius: 8px; text-align: center; color: var(--sacc-text-muted); font-size: 13px; }

/* ===== سفارشات ===== */
.sacc-orders-table-wrap { overflow-x: auto; }
.sacc-orders-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sacc-orders-table thead th { background: var(--sacc-cream); color: var(--sacc-green); text-align: right; padding: 10px 12px; border-bottom: 2px solid var(--sacc-border); white-space: nowrap; }
.sacc-orders-table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--sacc-border); }
.sacc-orders-table tbody tr:hover { background: #fafdfb; }
.sacc-status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; background: var(--sacc-cream); color: var(--sacc-text-muted); }
.sacc-status-completed, .sacc-status-processing { background: var(--sacc-green-pale); color: var(--sacc-green); }
.sacc-status-cancelled, .sacc-status-failed, .sacc-status-refunded { background: #FEE2E2; color: #B91C1C; }
.sacc-status-pending, .sacc-status-on-hold { background: #FEF3C7; color: #92400E; }

/* ===== Skeleton ===== */
@keyframes sacc-shimmer { 0% { background-position: -600px 0; } 100% { background-position: 600px 0; } }
.sacc-skeleton {
    height: 20px; border-radius: 6px;
    background: linear-gradient(90deg, #e8ede9 25%, #d4e6dc 50%, #e8ede9 75%);
    background-size: 1200px 100%; animation: sacc-shimmer 1.4s infinite linear; margin-bottom: 10px;
}
