@font-face {
    font-family: "BYekan";
    src: url("https://bamamart.ir/content/uploads/fonts/BYekan.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

.sam-dashboard,
.sam-dashboard input,
.sam-dashboard textarea,
.sam-dashboard button,
.sam-dashboard table {
    font-family: "BYekan", Tahoma, sans-serif;
}

.sam-dashboard {
    direction: rtl;
    max-width: 1200px;
    margin: 25px auto;
    color: #1f2940;
}

.sam-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00a3bd, #6046a5);
    color: #ffffff;
}

.sam-dashboard-header h2 {
    margin: 0 0 8px;
    font-size: 25px;
}

.sam-dashboard-header p {
    margin: 0;
    opacity: 0.92;
}

.sam-avatar img {
    width: 88px;
    height: 88px;
    border-radius: 8px;
    background: #ffffff;
    border: 3px solid rgba(255,255,255,.65);
}

.sam-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 22px 0;
}

.sam-stat-card {
    padding: 24px 14px;
    color: #ffffff;
    border-radius: 10px;
    text-align: center;
}

.sam-stat-card strong {
    display: block;
    font-family: Tahoma, sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.sam-stat-card span {
    font-size: 14px;
}

.sam-green {
    background: #65bdb1;
}

.sam-orange {
    background: #f8a622;
}

.sam-red {
    background: #f45867;
}

.sam-blue {
    background: #31325f;
}

.sam-box {
    background: #ffffff;
    border: 1px solid #e8ebf1;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(28, 39, 61, .05);
}

.sam-box h3 {
    margin-top: 0;
}

.sam-referral-link {
    display: flex;
    gap: 10px;
}

.sam-referral-link input {
    flex: 1;
    direction: ltr;
    text-align: left;
    padding: 11px;
    border: 1px solid #d8dde5;
    border-radius: 6px;
}

.sam-copy-link,
.sam-payout-form button {
    border: 0;
    border-radius: 6px;
    background: #1774d1;
    color: #ffffff;
    padding: 10px 18px;
    cursor: pointer;
}

.sam-payout-form {
    display: grid;
    gap: 12px;
    max-width: 600px;
}

.sam-payout-form input,
.sam-payout-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px;
    border: 1px solid #d8dde5;
    border-radius: 6px;
}

.sam-payout-form textarea {
    min-height: 90px;
}

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

.sam-table th,
.sam-table td {
    padding: 12px 8px;
    text-align: right;
    border-bottom: 1px solid #edf0f4;
}

.sam-table th {
    background: #f5f7fb;
}

@media screen and (max-width: 768px) {

    .sam-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sam-dashboard-header {
        padding: 20px;
    }

    .sam-referral-link {
        flex-direction: column;
    }

    .sam-table {
        font-size: 12px;
    }
}

.sam-payout-note {
    font-size: 13px;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 8px;
    margin-bottom: 12px;
    line-height: 1.9;
}
