/* ===== سایت‌ساز میراکد - استایل اختصاصی ===== */

.builder-shell {
    max-width: 980px;
}

/* نوار مراحل */
.step-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}

.step-dot .circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(137, 40, 255, 0.25);
    color: #64748b;
    transition: all .35s ease;
}

.step-dot .label {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

.step-dot.active .circle {
    background: linear-gradient(135deg, #8928ff, #a855f7);
    border-color: #8928ff;
    color: #fff;
    box-shadow: 0 6px 16px rgba(137, 40, 255, .35);
}

.step-dot.done .circle {
    background: #8928ff;
    border-color: #8928ff;
    color: #fff;
}

.step-dot.active .label,
.step-dot.done .label {
    color: #8928ff;
    font-weight: 600;
}

.step-line {
    position: absolute;
    top: 17px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: rgba(137, 40, 255, 0.2);
    z-index: -1;
}

.step-dot:first-child .step-line { display: none; }

/* کارت‌های انتخابی */
.choice-card {
    cursor: pointer;
    border: 2px solid rgba(137, 40, 255, 0.15);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.choice-card:hover {
    transform: translateY(-4px);
    border-color: rgba(137, 40, 255, 0.4);
    box-shadow: 0 15px 30px rgba(137, 40, 255, .15);
}

.choice-card.selected,
.choice-card:has(input:checked) {
    border-color: #8928ff;
    background: rgba(137, 40, 255, 0.08);
    box-shadow: 0 10px 25px rgba(137, 40, 255, .25);
}

.choice-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #8928ff;
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* چک‌باکس سفارشی مرحله صفحات */
.page-check {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 2px solid rgba(137, 40, 255, 0.3);
    background: #fff;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: all .2s ease;
}
.page-check:checked {
    background: linear-gradient(135deg, #8928ff, #a855f7);
    border-color: #8928ff;
}
.page-check:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.page-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(137, 40, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.type-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(137,40,255,.12), rgba(168,85,247,.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 14px;
    transition: transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.choice-card:hover .type-icon-badge { transform: scale(1.08) rotate(-4deg); }
.choice-card.selected .type-icon-badge {
    background: linear-gradient(135deg, #8928ff, #a855f7);
}

/* پالت رنگی */
.palette-swatch {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    height: 46px;
}
.palette-swatch span {
    flex: 1;
}

/* پیش‌نمایش سبک طراحی (تصویر واقعی) */
.style-preview {
    width: 100%;
    height: 140px;
    border-radius: 14px;
    object-fit: cover;
    background: #eee;
    display: block;
}

/* آپلود لوگو */
.logo-drop {
    border: 2px dashed rgba(137, 40, 255, 0.35);
    border-radius: 16px;
    background: rgba(137, 40, 255, 0.04);
    transition: all .3s ease;
    cursor: pointer;
}
.logo-drop:hover {
    border-color: #8928ff;
    background: rgba(137, 40, 255, 0.08);
}

/* کارت ورود درون‌صفحه‌ای (سایت‌ساز و پنل) */
.auth-inline-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(137,40,255,.18);
    background: #fff;
}
.auth-inline-header {
    position: relative;
    padding: 34px 28px 26px;
    text-align: center;
    background: linear-gradient(135deg, #8928ff 0%, #a855f7 55%, #64748b 100%);
    background-size: 200% 200%;
    animation: gradientShift 6s ease-in-out infinite;
    overflow: hidden;
}
.auth-inline-header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    top: -100px;
    left: -50px;
}
.auth-inline-icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.auth-inline-body {
    padding: 28px;
}

@media (max-width: 640px) {
    .step-dot .label { display: none; }
}

/* ===== پنل کاربری ===== */

.panel-tab {
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    color: #64748b;
    background: rgba(255,255,255,.5);
    border: 1px solid transparent;
    transition: all .25s ease;
    cursor: pointer;
}
.panel-tab.active {
    background: linear-gradient(135deg, #8928ff, #a855f7);
    color: #fff;
    box-shadow: 0 8px 18px rgba(137,40,255,.3);
}

.site-card {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(137,40,255,.12);
    border-radius: 18px;
    padding: 18px;
    transition: all .3s ease;
}
.site-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(137,40,255,.15);
}
.site-card img.logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: #f4f0ff;
}

.status-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}
.status-new { background: #ede9fe; color: #7c3aed; }
.status-in_progress { background: #fef3c7; color: #b45309; }
.status-completed { background: #d1fae5; color: #047857; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }

.status-open { background: #dbeafe; color: #1d4ed8; }
.status-answered { background: #d1fae5; color: #047857; }
.status-closed { background: #e5e7eb; color: #4b5563; }

.new-site-card {
    border: 2px dashed rgba(137,40,255,.4);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: #8928ff;
    transition: all .3s ease;
}
.new-site-card:hover {
    background: rgba(137,40,255,.06);
    transform: translateY(-4px);
}

.ticket-item {
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(137,40,255,.12);
    border-radius: 14px;
    padding: 16px;
}
