.samin-panel{position:fixed;top:50%;left:0;transform:translateY(-50%);z-index:9998}
.samin-btn{display:flex;flex-direction:column;align-items:center;gap:5px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:12px 10px;border-radius:0 12px 12px 0;cursor:pointer;box-shadow:-3px 0 15px rgba(102,126,234,.4);transition:.3s;font-family:Tahoma,Vazir,Arial,sans-serif;direction:rtl;font-size:11px;font-weight:600}
.samin-btn:hover{padding-left:15px;box-shadow:-5px 0 20px rgba(102,126,234,.6)}
.samin-btn svg{width:20px;height:20px}

.samin-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:9999;animation:saminFade .3s}
@keyframes saminFade{from{opacity:0}to{opacity:1}}
.samin-modal-box{background:#fff;margin:3% auto;width:95%;max-width:1100px;border-radius:12px;overflow:hidden;box-shadow:0 15px 50px rgba(0,0,0,.3);animation:saminSlide .3s;font-family:Tahoma,Vazir,Arial,sans-serif;direction:rtl;max-height:92vh;display:flex;flex-direction:column}
@keyframes saminSlide{from{transform:translateY(-30px);opacity:0}to{transform:translateY(0);opacity:1}}

/* هدر مدال */
.samin-modal-head{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:15px 20px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;flex-shrink:0}
.samin-head-info{display:flex;align-items:center;gap:12px;flex:1}
.samin-head-info svg{width:30px;height:30px;flex-shrink:0}
.samin-head-info h2{margin:0;font-size:16px;font-weight:700}
.samin-head-info p{margin:3px 0 0;opacity:.9;font-size:11px}

/* امضاها در هدر */
.samin-head-signatures{display:flex;gap:15px;flex:1;justify-content:center}
.samin-head-sig{display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 10px;background:rgba(255,255,255,.15);border-radius:6px;backdrop-filter:blur(10px)}
.samin-sig-label{font-size:9px;opacity:.9;font-weight:600}
.samin-sig-value{font-size:11px;font-weight:700}

.samin-close{font-size:24px;cursor:pointer;line-height:1;transition:.3s;color:#fff}
.samin-close:hover{transform:rotate(90deg);color:#fde68a}

.samin-modal-body{padding:15px;overflow:hidden;flex:1;display:flex;flex-direction:column}

.samin-forecast-table{width:100%;border-collapse:collapse;border:1px solid #e1e4e8;flex:1}
.samin-forecast-table thead th{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:8px 6px;font-weight:600;text-align:center;border:none;font-size:12px}
.samin-forecast-table tbody td{padding:6px 8px;border:1px solid #f0f0f0;text-align:center;vertical-align:middle;font-size:11px}
.samin-forecast-table tbody tr{height:40px}
.samin-forecast-table tbody tr:nth-child(even){background:#f8f9fa}
.samin-forecast-table tbody tr:hover{background:#f0f4ff}

.samin-pheno-img{width:40px;height:40px;object-fit:cover;border-radius:5px;border:1px solid #ddd}
.samin-no-data{color:#999;font-size:10px}

@media(max-width:768px){
    .samin-modal-box{margin:5% auto;width:98%;max-height:95vh}
    .samin-modal-head{flex-direction:column;align-items:flex-start;padding:12px 15px}
    .samin-head-info{width:100%;margin-bottom:8px}
    .samin-head-signatures{width:100%;justify-content:flex-start;flex-wrap:wrap;gap:8px}
    .samin-head-info h2{font-size:14px}
    .samin-head-info p{font-size:10px}
    .samin-forecast-table{font-size:10px}
    .samin-forecast-table thead th,.samin-forecast-table tbody td{padding:5px 4px}
    .samin-forecast-table tbody tr{height:35px}
    .samin-pheno-img{width:30px;height:30px}
    .samin-btn{font-size:10px;padding:10px 8px}
}