/**
 * استایل‌های فرانت‌سایت، گردونه چرخشی و کارت‌های برندگان
 * دیزاین لوکس، فلت و مینیمال با پالت رنگی روشن (Light Mode)
 */

/* کانتینر اصلی ویجت قرعه‌کشی */
.sl-lottery-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'yekanbakh', sans-serif;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
	background: rgba(255, 255, 255, 0.49);
	border-radius: 20px;
	backdrop-filter: blur(9.4px);
	-webkit-backdrop-filter: blur(9.4px);
}

/* کارت‌های پنل‌های فرانت */
.sl-panel-card {
    margin-bottom: 24px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* هدر پنل‌ها */
.sl-panel-header {
    background: #e7f3ff;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
	border-radius: 20px 20px 0 0;
}

.sl-panel-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

/* بدنه پنل‌ها */
.sl-panel-body {
    padding: 24px;
}

/* ساختار گرید و ردیف‌ها */
.sl-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.sl-col {
    flex: 1;
    min-width: 220px;
}

.sl-col-full {
    width: 100%;
}

/* لیبل‌ها و فرم‌ها */
.sl-panel-body label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.sl-panel-body input[type="text"],
.sl-panel-body input[type="number"],
.sl-panel-body select,
.sl-panel-body textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cddbeb;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    transition: all 0.25s ease;
    box-sizing: border-box;
	outline: none !important;
}

.sl-panel-body input:focus,
.sl-panel-body select:focus,
.sl-panel-body textarea:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
    outline: none !important;
}

.sl-field-desc {
    font-size: 11px;
    color: #94a3b8;
    margin: 4px 0 0 0;
}

/* دکمه‌های شیک و کاستوم فرانت */
.sl-btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sl-btn-primary {
    background: #e62a23 !important;
    color: #ffffff !important;
	border-radius: 12px !important;
	border: 1px solid white !important;
}

.sl-btn-primary:hover:not(:disabled) {
    background: #F9A61A !important;
	color: #151515 !important;
	border: 1px solid #F9A61A !important;
}

.sl-btn-primary:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
}

.sl-btn-secondary {
    background: #5d8cd63b !important;
    color: #2052a1 !important;
    border: 1px solid #2052a1 !important;
	border-radius: 12px !important;
	font-weight: 400 !important;
}

.sl-btn-secondary:hover {
    background: #e2e8f0;
}

/* استاتوس بار لودینگ */
.sl-status-bar {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    color: #334155;
    text-align: center;
}

/* ========================================== */
/* شاه‌نشین: باکس انیمیشن رولر دیجیتال دیجیتال */
/* ========================================== */
.sl-display-panel {
    background: #ffffff;
    border: 1px solid #eef2f6;
    text-align: center;
    padding: 40px 20px;
}

.sl-counter-title {
    font-size: 18px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 24px;
}

/* کانتینر چرخشی اسلات‌ها */
.sl-digital-roller {
    display: inline-flex;
    direction: ltr;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    padding: 12px 6px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* هر اسلات یا ستون عدد */
.sl-digit-slot {
    width: 38px;
    height: 54px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.sl-digit-slot.static {
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 24px;
    font-weight: 700;
    color: #94a3b8;
    width: 15px;
}

/* نوار عمودی اعداد داخل اسلات */
.sl-digit-strip {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
}

.sl-digit-strip span {
    width: 38px;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    font-family: monospace;
}

/* ========================================== */
/* کارت‌های برندگان زنده (Live Winners Grid) */
/* ========================================== */
.sl-winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 11fr));
    gap: 10px;
    margin-top: 10px;
}

.sl-winner-live-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sl-winner-live-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    border-color: #10b981;
}

.sl-card-rank {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.sl-card-avatar {
    font-size: 32px;
    margin-bottom: 8px;
}

.sl-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.sl-card-phone {
    font-size: 14px;
    font-family: monospace;
    color: #475569;
    margin-bottom: 12px;
}

.sl-card-meta {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.sl-card-inv, .sl-card-pts {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.sl-card-inv { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.sl-card-pts { background: #e0f2fe; color: #0369a1; }

/* دکمه حذف موقت برنده (ویژگی ۱۰) */
.sl-btn-remove-winner {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s;
    width: 100%;
    padding-top: 8px;
    border-top: 1px dashed #f1f5f9;
}

.sl-btn-remove-winner:hover {
    color: #ef4444;
}

/* ========================================== */
/* استایل‌های شورت‌کد تاریخچه عمومی فرانت */
/* ========================================== */
.sl-front-history-wrapper {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
}

.sl-front-history-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.sl-front-history-header h2 { margin: 0 0 6px 0; font-size: 18px; color: #0f172a; }
.sl-front-history-header p { margin: 0; font-size: 13px; color: #64748b; }

.sl-archive-item-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #ffffff;
}

.sl-archive-card-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    cursor: pointer;
    user-select: none;
}

.sl-archive-meta-info { display: flex; align-items: center; gap: 12px; }
.sl-archive-icon { font-size: 20px; }
.sl-archive-title { margin: 0 0 2px 0; font-size: 14px; font-weight: 700; color: #0f172a; }
.sl-archive-date { font-size: 11px; color: #94a3b8; }

.sl-archive-badge-zone { display: flex; align-items: center; gap: 12px; }
.sl-badge-winners-count { background: #ffffff; border: 1px solid #e2e8f0; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; color: #334155; }
.sl-arrow-toggle { font-size: 10px; color: #94a3b8; transition: transform 0.3s ease; }

/* بخش جزئیات آکاردئون فرانت */
.sl-archive-card-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    background: #ffffff;
}

.sl-front-grid-winners {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    padding: 20px;
}

.sl-winner-front-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    padding: 10px;
    border-radius: 8px;
    position: relative;
}

/* کانتینر اصلی هر برنده */
.sl-winner-item {
    margin: 20px auto;
    text-align: center;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
/*     max-width: 400px; */
}

/* کانتینر رولرها (مرتب کردن اسلات‌ها) */
.sl-digital-roller {
    display: inline-flex;
    direction: ltr; /* مهم برای نمایش صحیح ارقام */
    gap: 4px;
    justify-content: center;
	margin-top: 0px !important;
}

/* اسلات‌های تک‌رقمی */
.sl-digit-slot {
    width: 30px;
    height: 40px;
    background: #2d3436; /* رنگ زمینه دارک */
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    font-size: 20px;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
}

/* نوار متحرک */
.sl-digit-strip {
    position: absolute;
    top: 0;
    width: 100%;
}

.sl-winner-avatar { font-size: 18px; }
.sl-winner-name { font-size: 13px; font-weight: 700; color: #1e293b; }
.sl-winner-sub { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #64748b; margin-top: 2px; }
.sl-winner-points-badge { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; color: #d97706; background: #fef3c7; padding: 1px 6px; border-radius: 4px; }

.sl-no-history-placeholder { text-align: center; padding: 40px 20px; color: #94a3b8; font-size: 13px; }

/* کلاس کمکی کم‌رنگ سازی */
.sl-hidden { display: none !important; }

/* بهینه‌سازی ریسپانسیو فرانت */
@media (max-width: 768px) {
    .sl-row { flex-direction: column; gap: 12px; }
    .sl-archive-card-summary { flex-direction: column; align-items: flex-start; gap: 12px; }
    .sl-archive-badge-zone { width: 100%; justify-content: space-between; }
	.sl-lottory-mainb{ display: flex; flex-direction: column; }
}






/* LOTTORY CHECKUP */
.sl-front-box{
	font-family: 'yekanbakh';
	max-width: 400px; 
	margin: 20px auto; 
	padding: 25px; 
	direction: rtl; 
	text-align: right;
	background: rgba(255, 255, 255, 0.60);
	border-radius: 14px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(5.5px);
	-webkit-backdrop-filter: blur(5.5px);
	border: 1px solid rgba(255, 255, 255, 0.55);
}