/* School Management Pro - Frontend (scoped, fonts inherit from theme) */
.smp-container,
.smp-landing {
    max-width: 720px;
    margin: 20px auto;
    font-family: inherit;
    direction: rtl;
}

.smp-container *,
.smp-landing * {
    font-family: inherit;
    box-sizing: border-box;
}

.smp-login-box {
    max-width: 420px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.smp-login-box h2 {
    text-align: center;
    margin: 0 0 20px;
    color: #1E3A5F;
    font-size: 22px;
}

.smp-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 8px;
}

.smp-tab {
    flex: 1;
    padding: 10px;
    border: 0;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.smp-tab.active {
    background: #fff;
    color: #1E3A5F;
    font-weight: bold;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.smp-form-group { margin-bottom: 15px; }

.smp-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.smp-form-group input,
.smp-form-group select,
.smp-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}

.smp-form-group input:focus,
.smp-form-group select:focus,
.smp-form-group textarea:focus {
    outline: none;
    border-color: #1E3A5F;
    box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}

.smp-form-group small { color: #64748b; font-size: 12px; display: block; margin-top: 4px; }

.smp-btn {
    width: 100%;
    padding: 12px;
    background: #1E3A5F;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.smp-btn:hover { background: #16304f; }
.smp-btn:active { transform: scale(0.98); }
.smp-btn:disabled { background: #94a3b8; cursor: not-allowed; }

.smp-link-btn {
    background: none;
    border: 0;
    color: #1E3A5F;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    margin-top: 10px;
}

.smp-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.8;
}

.smp-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.smp-alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.smp-timer { text-align: center; color: #64748b; font-size: 13px; margin: 10px 0 0; }
.smp-msg { text-align: center; font-size: 14px; margin: 10px 0 0; min-height: 20px; }

.smp-cred-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.smp-cred-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.smp-cred-table td:first-child { color: #64748b; width: 40%; }
.smp-cred-table code { background: #f1f5f9; padding: 3px 10px; border-radius: 6px; font-size: 15px; }

/* Dashboard */
.smp-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.smp-dash-header h2 { margin: 0; color: #1E3A5F; }

.smp-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.smp-card h3 {
    margin: 0 0 15px;
    color: #1E3A5F;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.smp-badge-count {
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 20px;
}

.smp-notif {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f8fafc;
    border-right: 3px solid #cbd5e1;
}

.smp-notif-unread {
    background: #fefce8;
    border-right-color: #F4A624;
}

.smp-notif-head {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 4px;
}

.smp-notif-head span { color: #94a3b8; font-size: 12px; }
.smp-notif-body { font-size: 13px; color: #475569; line-height: 1.7; }

.smp-offer {
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    margin-bottom: 10px;
}

.smp-offer p { margin: 8px 0 0; font-size: 13px; color: #475569; }
.smp-offer small { display: block; margin-top: 6px; color: #94a3b8; }

.smp-custom-msg {
    background: #f0f9ff;
    padding: 8px 12px;
    border-radius: 6px;
    color: #0c4a6e !important;
}

.smp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
}

.smp-gold { background: #fef3c7; color: #92400e; }

.smp-coupon-code {
    background: #1E3A5F;
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 16px;
    letter-spacing: 2px;
}

/* ==================== لندینگ پیش ثبت‌نام ==================== */
.smp-landing { max-width: 780px; }

.smp-hero {
    background: linear-gradient(135deg, #1E3A5F 0%, #2d5a8f 60%, #3b74b5 100%);
    color: #fff;
    border-radius: 16px;
    padding: 45px 30px;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.smp-hero::before {
    content: '';
    position: absolute;
    top: -60px; left: -60px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.smp-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -40px;
    width: 240px; height: 240px;
    background: rgba(244,166,36,0.12);
    border-radius: 50%;
}

.smp-hero-icon { font-size: 52px; margin-bottom: 12px; }

.smp-hero h1 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.smp-hero p {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.smp-hero-success { background: linear-gradient(135deg, #065f46 0%, #059669 60%, #10b981 100%); }

.smp-check-circle {
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.15);
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    margin: 0 auto 18px;
    animation: smp-pop 0.5s ease;
}

@keyframes smp-pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.smp-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.smp-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
}

.smp-step-num {
    width: 34px; height: 34px;
    background: #1E3A5F;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.smp-step-line {
    width: 45px;
    height: 2px;
    background: #cbd5e1;
}

.smp-lp-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.smp-lp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 20px;
}

.smp-lp-full { grid-column: 1 / -1; }

@media (max-width: 600px) {
    .smp-lp-grid { grid-template-columns: 1fr; }
}

.smp-lp-btn {
    margin-top: 15px;
    padding: 14px;
    font-size: 17px;
    background: linear-gradient(135deg, #1E3A5F, #2d5a8f);
}

.smp-lp-cred { text-align: center; }

.smp-lp-label {
    display: block;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 10px;
}

.smp-lp-code {
    display: inline-block;
    background: linear-gradient(135deg, #1E3A5F, #2d5a8f);
    color: #fff;
    font-size: 30px;
    letter-spacing: 6px;
    padding: 14px 36px;
    border-radius: 12px;
    direction: ltr;
    box-shadow: 0 6px 20px rgba(30,58,95,0.3);
}

.smp-lp-note {
    margin-top: 16px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.9;
}

.smp-lp-status h3 { margin: 0 0 15px; color: #1E3A5F; font-size: 17px; }

.smp-lp-status-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
}

.smp-lp-status-form input {
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

.smp-lp-status-form .smp-btn { width: auto; padding: 11px 26px; }

@media (max-width: 600px) {
    .smp-lp-status-form { grid-template-columns: 1fr; }
    .smp-lp-status-form .smp-btn { width: 100%; }
}

/* کارت زیبای اطلاعات ورود */
.smp-cred-card {
    background: linear-gradient(135deg, #1E3A5F 0%, #2d5a8f 100%);
    border-radius: 16px;
    padding: 30px;
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 30px rgba(30,58,95,0.3);
    margin: 20px 0;
}

.smp-cred-card h3 { color: #fff; margin: 0 0 20px; font-size: 18px; }

.smp-cred-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 10px;
}

.smp-cred-row span { opacity: 0.85; font-size: 14px; }

.smp-cred-row code {
    background: rgba(255,255,255,0.18);
    color: #fff;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 17px;
    letter-spacing: 1px;
    direction: ltr;
}

.smp-cred-card .smp-cred-warn {
    margin-top: 14px;
    font-size: 13px;
    color: #fde68a;
}

/* ==================== پیام‌ها (نسخه بهبودیافته) ==================== */
.smp-notif-list { display: flex; flex-direction: column; gap: 10px; }

.smp-notif2 {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.15s;
}

.smp-notif2:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    transform: translateY(-1px);
}

.smp-notif2-unread {
    background: linear-gradient(-90deg, #fffbeb 0%, #fff 55%);
    border-color: #fcd34d;
    border-right: 4px solid #F4A624;
}

.smp-notif2-read { opacity: 0.85; }

.smp-notif2-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
}

.smp-notif2-unread .smp-notif2-icon { background: #fef3c7; }

.smp-notif2-main { flex: 1; min-width: 0; }

.smp-notif2-title {
    font-size: 14px;
    font-weight: bold;
    color: #1E3A5F;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.smp-notif2-status {
    font-size: 11px;
    font-weight: normal;
    padding: 2px 9px;
    border-radius: 20px;
    background: #ef4444;
    color: #fff;
}

.smp-notif2-read .smp-notif2-status {
    background: #d1fae5;
    color: #065f46;
}

.smp-notif2-excerpt {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 2px;
    line-height: 1.7;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smp-notif2-date { font-size: 11px; color: #94a3b8; }

.smp-notif2-btn {
    flex-shrink: 0;
    padding: 9px 16px;
    background: #1E3A5F;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.smp-notif2-btn:hover { background: #16304f; }
.smp-notif2-read .smp-notif2-btn { background: #94a3b8; }
.smp-notif2-read .smp-notif2-btn:hover { background: #64748b; }

@media (max-width: 520px) {
    .smp-notif2 { flex-wrap: wrap; }
    .smp-notif2-btn { width: 100%; }
}

/* ==================== مودال پیام ==================== */
.smp-no-scroll { overflow: hidden; }

.smp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    direction: rtl;
}

.smp-modal-overlay.smp-modal-open {
    opacity: 1;
    visibility: visible;
}

.smp-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9) translateY(15px);
    transition: transform 0.25s;
    overflow: hidden;
    font-family: inherit;
}

.smp-modal-open .smp-modal {
    transform: scale(1) translateY(0);
}

.smp-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1E3A5F, #2d5a8f);
    color: #fff;
    padding: 16px 20px;
}

.smp-modal-head h4 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.smp-modal-close {
    background: rgba(255,255,255,0.15);
    border: 0;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.smp-modal-close:hover { background: rgba(255,255,255,0.3); }

.smp-modal-date {
    padding: 10px 20px 0;
    font-size: 12px;
    color: #94a3b8;
}

.smp-modal-body {
    padding: 14px 20px 20px;
    font-size: 14px;
    color: #334155;
    line-height: 2;
    overflow-y: auto;
}

.smp-modal-foot {
    padding: 0 20px 20px;
}

.smp-modal-foot .smp-btn { margin: 0; }

/* ==================== تیکت‌های پشتیبانی ==================== */
.smp-tk-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; }

.smp-tk-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.smp-tk-item:hover {
    border-color: #1E3A5F;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
}

.smp-tk-item strong { display: block; color: #1E3A5F; font-size: 14px; }
.smp-tk-item small { color: #94a3b8; font-size: 12px; }

.smp-tk-badge {
    flex-shrink: 0;
    font-size: 11px;
    padding: 3px 11px;
    border-radius: 20px;
    white-space: nowrap;
}

.smp-tk-open { background: #fef3c7; color: #92400e; }
.smp-tk-answered { background: #d1fae5; color: #065f46; }
.smp-tk-closed { background: #f1f5f9; color: #64748b; }

.smp-tk-new summary {
    cursor: pointer;
    color: #1E3A5F;
    font-weight: bold;
    font-size: 14px;
    padding: 10px 0;
}

.smp-tk-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.smp-tk-msg { max-width: 80%; }
.smp-tk-msg small { color: #94a3b8; font-size: 11px; display: block; margin-top: 3px; }

.smp-tk-student { align-self: flex-start; }
.smp-tk-student .smp-tk-bubble {
    background: #1E3A5F;
    color: #fff;
    border-radius: 12px 12px 3px 12px;
}

.smp-tk-admin { align-self: flex-end; }
.smp-tk-admin .smp-tk-bubble {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 12px 12px 12px 3px;
}

.smp-tk-admin small { text-align: left; }

.smp-tk-bubble {
    padding: 11px 15px;
    font-size: 13px;
    line-height: 1.9;
}

/* ==================== پنل دانش‌آموز (نسخه حرفه‌ای) ==================== */
.smp-panel {
    max-width: 860px;
    margin: 20px auto;
    direction: rtl;
    font-family: inherit;
}

.smp-panel * { font-family: inherit; box-sizing: border-box; }

/* هدر */
.smp-p-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #1E3A5F 0%, #2d5a8f 60%, #3b74b5 100%);
    border-radius: 20px;
    padding: 24px 26px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
}

.smp-p-hero::after {
    content: '';
    position: absolute;
    top: -70px;
    left: -50px;
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}

.smp-p-avatar {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    z-index: 1;
}

.smp-p-hero-info { flex: 1; z-index: 1; min-width: 0; }
.smp-p-hero-info h2 { margin: 0 0 6px; color: #fff; font-size: 20px; }

.smp-p-hero-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    opacity: 0.9;
}

.smp-p-logout {
    z-index: 1;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    background: rgba(255,255,255,0.14);
    padding: 8px 14px;
    border-radius: 20px;
    transition: background 0.2s;
    white-space: nowrap;
}

.smp-p-logout:hover { background: rgba(255,255,255,0.28); color: #fff; }

/* ناوبری */
.smp-p-nav {
    display: flex;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 16px;
    position: sticky;
    top: 10px;
    z-index: 500;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.smp-p-nav button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 8px;
    border: 0;
    background: transparent;
    border-radius: 11px;
    cursor: pointer;
    font-size: 13px;
    color: #64748b;
    position: relative;
    transition: background 0.2s, color 0.2s;
}

.smp-p-nav button:hover { background: #f1f5f9; }

.smp-p-nav button.active {
    background: #1E3A5F;
    color: #fff;
    font-weight: bold;
}

.smp-p-ico { font-size: 16px; }

.smp-p-dot {
    position: absolute;
    top: 4px;
    left: 8px;
    background: #ef4444;
    color: #fff;
    font-style: normal;
    font-size: 10px;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    text-align: center;
    border-radius: 20px;
    padding: 0 4px;
}

.smp-p-dot-gold { background: #F4A624; }

/* تب‌ها */
.smp-p-tab { display: none; animation: smp-fade 0.25s ease; }
.smp-p-tab-active { display: block; }

@keyframes smp-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.smp-p-date { color: #64748b; font-size: 13px; margin: 0 0 12px; }

/* آمار خانه */
.smp-p-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.smp-p-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    font-family: inherit;
}

.smp-p-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.smp-p-stat-num {
    display: block;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 4px;
}

.smp-p-stat > span:last-child { font-size: 12px; color: #64748b; }

.smp-p-allread {
    text-align: center;
    padding: 30px 20px;
}

.smp-p-allread p { color: #64748b; margin: 8px 0 0; }

/* موبایل: ناوبری پایین اپ‌مانند */
@media (max-width: 640px) {
    .smp-panel { padding-bottom: 88px; }

    .smp-p-hero { padding: 20px; border-radius: 16px; }
    .smp-p-avatar { width: 52px; height: 52px; font-size: 22px; }
    .smp-p-hero-info h2 { font-size: 17px; }
    .smp-p-logout { font-size: 12px; padding: 7px 11px; }

    .smp-p-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        margin: 0;
        border-radius: 18px 18px 0 0;
        border: 0;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -6px 24px rgba(0,0,0,0.12);
        padding: 8px 6px calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 99999;
    }

    .smp-p-nav button {
        flex-direction: column;
        gap: 3px;
        font-size: 10px;
        padding: 7px 4px;
    }

    .smp-p-ico { font-size: 20px; }

    .smp-p-dot { top: 0; left: 50%; transform: translateX(-130%); }

    .smp-p-stats { grid-template-columns: repeat(2, 1fr); }
    .smp-p-stat-num { font-size: 24px; }
}

/* ==================== شهریه ==================== */
.smp-tu-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 14px 0 12px;
}

.smp-tu-summary > div {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}

.smp-tu-summary span { display: block; font-size: 11px; color: #64748b; margin-bottom: 4px; }
.smp-tu-summary strong { font-size: 14px; color: #1E3A5F; }

.smp-tu-progress {
    height: 10px;
    background: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
}

.smp-tu-progress > div {
    height: 100%;
    background: linear-gradient(90deg, #059669, #10b981);
    border-radius: 20px;
    transition: width 0.6s ease;
}

.smp-tu-percent {
    font-size: 12px;
    color: #64748b;
    margin: 6px 0 14px;
    text-align: left;
}

.smp-tu-insts { display: flex; flex-direction: column; gap: 8px; }

.smp-tu-inst {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.smp-tu-paid { background: #f0fdf4; border-color: #bbf7d0; }
.smp-tu-overdue { background: #fef2f2; border-color: #fecaca; }

.smp-tu-inst-info strong { color: #1E3A5F; font-size: 14px; margin-left: 8px; }
.smp-tu-amount { font-size: 14px; font-weight: bold; color: #334155; margin-left: 8px; }
.smp-tu-inst-info small { display: block; color: #94a3b8; font-size: 11px; margin-top: 3px; }

.smp-tu-inst-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.smp-tu-pay-btn {
    background: #1E3A5F;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.smp-tu-pay-btn:hover { background: #16304f; }

.smp-tu-alert {
    background: linear-gradient(-90deg, #fffbeb, #fff);
    border-color: #fcd34d;
    border-right: 4px solid #F4A624;
}

@media (max-width: 520px) {
    .smp-tu-inst { flex-direction: column; align-items: stretch; text-align: center; }
    .smp-tu-inst-act { justify-content: center; }
    .smp-tu-pay-btn { width: 100%; }
}

/* ==================== پنل مدیران ==================== */
.smp-mgr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.smp-mgr-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.smp-mgr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(30,58,95,0.13);
    border-color: #1E3A5F;
}

.smp-mgr-icon {
    font-size: 30px;
    display: flex;
    align-items: center;
}

.smp-mgr-card strong { color: #1E3A5F; font-size: 15px; }
.smp-mgr-card p { margin: 0; font-size: 12px; color: #64748b; line-height: 1.8; flex: 1; }

.smp-mgr-go {
    font-size: 12px;
    color: #1E3A5F;
    font-weight: bold;
    margin-top: 6px;
}

@media (max-width: 520px) {
    .smp-mgr-grid { grid-template-columns: 1fr 1fr; }
    .smp-mgr-card { padding: 15px; }
}
