/* استایل مشترک صفحات راهنما (وامسی، مانیسا، اپل آیدی، رجیستری)
   محدود به .svc-page تا با بقیه‌ی سایت تداخل نداشته باشد.
   طرحی مدرن‌تر و موبایل‌فرندلی، هماهنگ با رنگ/فونت سایت. */

.svc-page .svc-hero {
    margin-top: 2rem;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid #dbeafe;
    background: linear-gradient(120deg, #eff6ff 0%, #f8fbff 55%, #ffffff 100%);
    overflow: hidden;
}

html.dark .svc-page .svc-hero {
    border-color: #374151;
    background: linear-gradient(120deg, #1f2937 0%, #1a2130 60%, #111827 100%);
}

.svc-page .svc-hero-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .svc-page .svc-hero-wrap { grid-template-columns: 1.3fr 1fr; }
}

.svc-page .svc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #2563eb;
    padding: 0.35rem 0.85rem;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
}

html.dark .svc-page .svc-eyebrow {
    color: #93c5fd;
    background: #1e293b;
    border-color: #334155;
}

.svc-page .svc-hero h1 {
    margin: 0.9rem 0 0.6rem;
    font-size: 1.6rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .svc-page .svc-hero h1 { font-size: 2rem; }
}

.svc-page .svc-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

@media (min-width: 480px) {
    .svc-page .svc-hero-actions { flex-direction: row; }
}

.svc-page .svc-overview {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 1.1rem;
    padding: 1.4rem;
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.06);
}

html.dark .svc-page .svc-overview {
    background: #1f2937;
    border-color: #374151;
    box-shadow: none;
}

.svc-page .svc-overview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #eff2f7;
}

html.dark .svc-page .svc-overview-top { border-color: #374151; }

.svc-page .svc-overview-top strong {
    font-size: 1.4rem;
    color: #2563eb;
    display: block;
}

.svc-page .svc-overview-top strong span {
    display: block;
    font: 9px Arial, sans-serif;
    letter-spacing: 3px;
    margin-top: 2px;
    color: #6b7280;
}

.svc-page .svc-outline-tag {
    font-size: 0.7rem;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 3px 9px;
}

html.dark .svc-page .svc-outline-tag { border-color: #374151; color: #9ca3af; }

.svc-page .svc-overview-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.8;
    margin: 1rem 0;
}

.svc-page .svc-mini-steps {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
}

.svc-page .svc-mini-steps li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.svc-page .svc-mini-steps li:last-child { padding-bottom: 0; }

.svc-page .svc-mini-steps span.svc-mini-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 0.6rem;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.8rem;
}

html.dark .svc-page .svc-mini-steps span.svc-mini-num { background: #374151; color: #93c5fd; }

.svc-page .svc-mini-steps small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: #6b7280;
    margin-top: 2px;
}

.svc-page .svc-overview-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.9rem;
    font-size: 0.75rem;
    color: #2563eb;
}

html.dark .svc-page .svc-overview-link { border-color: #374151; color: #93c5fd; }

.svc-page .svc-path-card {
    position: relative;
    overflow: hidden;
}

.svc-page .svc-path-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: #3b82f6;
}

.svc-page .svc-path-card.svc-green::before { background: #22c55e; }

.svc-page .svc-step-list {
    list-style: none;
    counter-reset: svc-step;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.svc-page .svc-step-list > li {
    counter-increment: svc-step;
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.svc-page .svc-step-list > li::before {
    content: counter(svc-step, persian);
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 9999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

html.dark .svc-page .svc-step-list > li::before { background: #374151; color: #93c5fd; }

.svc-page .svc-step-list p { font-size: 0.85rem; line-height: 1.9; color: #6b7280; margin: 0.2rem 0 0; }
html.dark .svc-page .svc-step-list p { color: #9ca3af; }
.svc-page .svc-step-list a { color: #2563eb; }
.svc-page .svc-step-list a:hover { text-decoration: underline; }

/* محتوای آزاد ادمین (CKEditor) داخل مسیرهای ثبت‌نام/خرید و سوالات متداول —
   خروجی CKEditor فقط <ol><li>/<h3>/<p> ساده است، بدون کلاس یا تودرتویی svc-step-list. */
.svc-page .svc-admin-steps ol {
    list-style: none;
    counter-reset: svc-admin-step;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.svc-page .svc-admin-steps li {
    counter-increment: svc-admin-step;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.svc-page .svc-admin-steps li::before {
    content: counter(svc-admin-step);
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background: #eff6ff;
    color: #3b82f6;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
}

html.dark .svc-page .svc-admin-steps li { color: #d1d5db; }
html.dark .svc-page .svc-admin-steps li::before { background: #374151; color: #60a5fa; }

.svc-page .svc-admin-steps p, .svc-page .svc-admin-steps a { font-size: 0.875rem; }
.svc-page .svc-admin-steps a { color: #3b82f6; }
.svc-page .svc-admin-steps a:hover { text-decoration: underline; }

.svc-page .svc-admin-faq h3 {
    font-size: 0.95rem;
    margin: 1.25rem 0 0.25rem;
    color: #1f2937;
}
.svc-page .svc-admin-faq h3:first-child { margin-top: 0; }
.svc-page .svc-admin-faq p {
    font-size: 0.875rem;
    line-height: 1.9;
    color: #4b5563;
    margin: 0 0 0.5rem;
}
html.dark .svc-page .svc-admin-faq h3 { color: #f3f4f6; }
html.dark .svc-page .svc-admin-faq p { color: #d1d5db; }
.svc-page .svc-admin-faq a { color: #3b82f6; }
.svc-page .svc-admin-faq a:hover { text-decoration: underline; }

.svc-page .svc-req-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .svc-page .svc-req-grid { grid-template-columns: repeat(4, 1fr); }
}

.svc-page .svc-req-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 0.9rem;
    background: #eff6ff;
    color: #2563eb;
    flex-shrink: 0;
}

html.dark .svc-page .svc-req-icon { background: #374151; color: #93c5fd; }

.svc-page .svc-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    background: #eff6ff;
}

html.dark .svc-page .svc-notice { background: #1e293b; border-color: #334155; }

.svc-page .svc-notice-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1f2937;
    margin: 0 0 0.35rem;
}

html.dark .svc-page .svc-notice-title { color: #f3f4f6; }

.svc-page .svc-notice ul {
    margin: 0.4rem 0 0;
    padding-inline-start: 1.1rem;
    font-size: 0.8rem;
    line-height: 1.9;
    color: #6b7280;
}

html.dark .svc-page .svc-notice ul { color: #9ca3af; }

.svc-page .svc-notice-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563eb;
}

.svc-page .svc-notice-link:hover { text-decoration: underline; }
html.dark .svc-page .svc-notice-link { color: #93c5fd; }

/* نوار سه‌بجی اعتمادسازی زیر هیرو (اپل‌آیدی/رجیستری) — الهام از رقبا، برای
   ارتباط سریع «قانونی/شفاف/پشتیبانی» بدون اضافه کردن یک سکشن کامل جدید. */
.svc-page .svc-trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

.svc-page .svc-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #2563eb;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
}

html.dark .svc-page .svc-trust-item {
    color: #93c5fd;
    background: #1e293b;
    border-color: #334155;
}

.svc-page .svc-trust-item svg { width: 0.9rem; height: 0.9rem; flex-shrink: 0; }

/* سکشن «نکات مهم» رجیستری بعد از حذف کارت «سقف سالانه مسافرتی» سه آیتم
   دارد. grid-cols-3 در app.css در هیچ breakpoint‌ای وجود ندارد
   (safari-tailwind-missing-classes)، برای همین این سه کارت را با CSS خام
   در sm+ سه‌ستونه و کنار هم می‌چینیم؛ زیر ۴۸۰px همچنان یک‌ستونه و زیر هم می‌مانند. */
@media (min-width: 480px) {
    .svc-page .svc-notes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.svc-page .svc-shop-banner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid #dbeafe;
    border-inline-start: 4px solid #3b82f6;
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-top: 2.5rem;
}

html.dark .svc-page .svc-shop-banner { background: #1f2937; border-color: #374151; border-inline-start-color: #3b82f6; }

@media (min-width: 640px) {
    .svc-page .svc-shop-banner { flex-direction: row; align-items: center; justify-content: space-between; }
}

.svc-page .svc-faq-item {
    background: #fff;
    border-radius: 0.9rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    overflow: hidden;
}

html.dark .svc-page .svc-faq-item { background: #1f2937; }

.svc-page .svc-faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    padding: 1.1rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: #1f2937;
}

html.dark .svc-page .svc-faq-item summary { color: #f3f4f6; }

.svc-page .svc-faq-item summary::-webkit-details-marker { display: none; }

.svc-page .svc-faq-item summary::after {
    content: '+';
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.5rem;
    background: #f9fafb;
    color: #2563eb;
    font: 20px Arial, sans-serif;
}

html.dark .svc-page .svc-faq-item summary::after { background: #374151; }

.svc-page .svc-faq-item[open] summary { color: #2563eb; }
html.dark .svc-page .svc-faq-item[open] summary { color: #93c5fd; }
.svc-page .svc-faq-item[open] summary::after { content: '−'; background: #eff6ff; }
html.dark .svc-page .svc-faq-item[open] summary::after { background: #1e293b; }

.svc-page .svc-faq-item > p {
    padding: 0 1.15rem 1.15rem;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.95;
    color: #6b7280;
}

html.dark .svc-page .svc-faq-item > p { color: #9ca3af; }
.svc-page .svc-faq-item > p a { color: #2563eb; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .svc-page * { transition: none !important; }
}

/* ==========================================================================
   نسخه ۲ صفحات رجیستری و اپل آیدی (بسته ۲۱) — موبایل‌فرست.
   الگو از سایت‌های رتبه‌اول این حوزه: هیروی کوتاه با وعده‌ی روشن، «لیست امروز»،
   مسیر سه‌مرحله‌ای و فرم مرحله‌به‌مرحله. همه کلاس‌ها جدیدند؛ وامسی/مانیسا دست نمی‌خورند.
   ========================================================================== */

.svc-page .svc-hero--v2 {
    margin-top: 1.25rem;
    padding: 1.5rem 1.15rem 1.35rem;
    text-align: start;
}

@media (min-width: 768px) {
    .svc-page .svc-hero--v2 { padding: 2.25rem 2rem; }
}

.svc-page .svc-hero--v2 h1 {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.45rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .svc-page .svc-hero--v2 h1 { font-size: 2rem; }
}

.svc-page .svc-hero-lead {
    font-size: 0.9rem;
    line-height: 2;
    color: #4b5563;
    max-width: 34rem;
}

html.dark .svc-page .svc-hero-lead { color: #9ca3af; }

.svc-page .svc-pill-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* «امروز ۱۲ مهر · …» — نشانه‌ی فعال بودن سرویس، الهام از iranappleid / appleid24 */
.svc-page .svc-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: #15803d;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
}

.svc-page .svc-live-pill::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #22c55e;
    animation: svc-live-pulse 2s ease-out infinite;
}

html.dark .svc-page .svc-live-pill { color: #86efac; background: #052e16; border-color: #14532d; }

@keyframes svc-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70%, 100% { box-shadow: 0 0 0 0.45rem rgba(34, 197, 94, 0); }
}

/* دکمه‌ها: حداقل ۴۸px ارتفاع برای لمس راحت */
.svc-page .svc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.7rem 1.35rem;
    border-radius: 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.svc-page .svc-btn svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }

.svc-page .svc-btn--primary {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.28);
}

.svc-page .svc-btn--primary:hover { background: #2563eb; }

.svc-page .svc-btn--ghost {
    background: #fff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.svc-page .svc-btn--ghost:hover { border-color: #60a5fa; }

html.dark .svc-page .svc-btn--ghost { background: #1f2937; color: #93c5fd; border-color: #374151; }

.svc-page .svc-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

.svc-page .svc-btn[disabled],
.svc-page .svc-btn.is-loading { opacity: 0.7; cursor: progress; }

.svc-page .svc-btn.is-loading::after {
    content: '';
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    animation: svc-spin 0.7s linear infinite;
}

@keyframes svc-spin { to { transform: rotate(360deg); } }

.svc-page .svc-btn--block { width: 100%; }

.svc-page .svc-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.15rem;
}

@media (min-width: 480px) {
    .svc-page .svc-hero-cta { flex-direction: row; }
}

/* سه آمار کوتاه زیر هیرو */
.svc-page .svc-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1.15rem;
}

.svc-page .svc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    padding: 0.7rem 0.4rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #dbeafe;
    border-radius: 0.9rem;
}

html.dark .svc-page .svc-stat { background: #1e293b; border-color: #334155; }

.svc-page .svc-stat svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; color: #3b82f6; }
.svc-page .svc-stat > span { display: flex; flex-direction: column; }
.svc-page .svc-stat strong { font-size: 0.78rem; color: #111827; line-height: 1.5; }
.svc-page .svc-stat small { font-size: 0.66rem; color: #6b7280; line-height: 1.5; }
html.dark .svc-page .svc-stat strong { color: #f3f4f6; }
html.dark .svc-page .svc-stat small { color: #9ca3af; }

@media (min-width: 640px) {
    .svc-page .svc-stat { flex-direction: row; text-align: start; gap: 0.6rem; padding: 0.8rem 0.9rem; }
}

/* تصویرسازی CSS کنار هیرو — فقط تبلت به بالا تا بالای صفحه در موبایل کوتاه بماند */
.svc-page .svc-hero-visual { display: none; }

@media (min-width: 768px) {
    .svc-page .svc-hero--v2 .svc-hero-wrap { grid-template-columns: 1.4fr 1fr; }
    .svc-page .svc-hero-visual { display: flex; justify-content: center; padding: 1rem 0; }
}

/* گوشی نمادین با پیامک فعال‌سازی (رجیستری) */
.svc-page .svc-phone-mock {
    position: relative;
    width: 12.5rem;
    height: 17rem;
    border-radius: 2rem;
    padding: 0.6rem;
    background: linear-gradient(160deg, #1e3a8a, #3b82f6);
    box-shadow: 0 24px 50px rgba(30, 64, 175, 0.25);
    transform: rotate(-4deg);
}

.svc-page .svc-phone-screen {
    height: 100%;
    border-radius: 1.5rem;
    background: #f8fafc;
    padding: 1.6rem 0.8rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

html.dark .svc-page .svc-phone-screen { background: #111827; }

.svc-page .svc-sms {
    font-size: 0.68rem;
    line-height: 1.8;
    color: #1f2937;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    border-start-start-radius: 0.25rem;
    padding: 0.55rem 0.7rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

html.dark .svc-page .svc-sms { background: #1f2937; border-color: #374151; color: #e5e7eb; }

.svc-page .svc-sms b { color: #16a34a; }

.svc-page .svc-check-badge {
    position: absolute;
    inset-inline-start: -1rem;
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff;
    color: #15803d;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 0.8rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    transform: rotate(4deg);
}

.svc-page .svc-check-badge svg { width: 1rem; height: 1rem; }

/* کارت اپل آیدی (الهام از appleidtop) — در فرم با نام/ایمیل تایپ‌شده زنده به‌روز می‌شود */
.svc-page .svc-aid-card {
    position: relative;
    width: 100%;
    max-width: 19rem;
    aspect-ratio: 1.6 / 1;
    border-radius: 1.25rem;
    padding: 1.1rem 1.2rem;
    color: #fff;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, #1e40af 0%, #3b82f6 55%, #60a5fa 100%);
    box-shadow: 0 22px 45px rgba(30, 64, 175, 0.28);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.svc-page .svc-hero-visual .svc-aid-card { transform: rotate(-5deg); }

.svc-page .svc-aid-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.svc-page .svc-aid-card-top svg { width: 1.6rem; height: 1.6rem; }

.svc-page .svc-aid-chip {
    font: 600 0.62rem "Helvetica Neue", Arial, "Segoe UI", sans-serif;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}

.svc-page .svc-aid-card-body { direction: ltr; text-align: left; font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif; }
.svc-page .svc-aid-label { font-size: 0.62rem; opacity: 0.75; letter-spacing: 0.08em; text-transform: uppercase; }
.svc-page .svc-aid-name { font-size: 1.05rem; font-weight: 600; margin-top: 0.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-page .svc-aid-name.is-rtl { font-family: Dana, Tahoma, sans-serif; direction: rtl; text-align: left; }
.svc-page .svc-aid-email { font-size: 0.72rem; opacity: 0.85; margin-top: 0.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* عنوان سکشن‌ها */
.svc-page .svc-section { margin-top: 2.25rem; scroll-margin-top: 6rem; }

.svc-page .svc-section-head { margin-bottom: 1rem; }
.svc-page .svc-section-head h2 { font-size: 1.1rem; line-height: 1.7; }
.svc-page .svc-section-head p { font-size: 0.8rem; color: #6b7280; margin-top: 0.2rem; line-height: 1.9; }
html.dark .svc-page .svc-section-head p { color: #9ca3af; }

@media (min-width: 768px) {
    .svc-page .svc-section { margin-top: 3rem; }
    .svc-page .svc-section-head { text-align: center; }
}

/* ---------- لیست عوارض امروز ---------- */
.svc-page .svc-fee {
    background: #fff;
    border: 1px solid #e5edf9;
    border-radius: 1.25rem;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.06);
}

html.dark .svc-page .svc-fee { background: #1f2937; border-color: #374151; box-shadow: none; }

@media (min-width: 768px) {
    .svc-page .svc-fee { padding: 1.4rem; max-width: 46rem; margin-inline: auto; }
}

.svc-page .svc-fee-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.svc-page .svc-fee-head h2 { font-size: 1.05rem; }

.svc-page .svc-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 0.6rem;
    padding: 0.3rem 0.6rem;
}

.svc-page .svc-date-badge svg { width: 0.9rem; height: 0.9rem; }
html.dark .svc-page .svc-date-badge { background: #1e293b; color: #93c5fd; }

.svc-page .svc-search { position: relative; }

.svc-page .svc-search svg {
    position: absolute;
    inset-inline-start: 0.9rem;
    top: 50%;
    width: 1.1rem;
    height: 1.1rem;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.svc-page .svc-search .svc-input { padding-inline-start: 2.6rem; }

.svc-page .svc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.svc-page .svc-chip {
    min-height: 36px;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.svc-page .svc-chip[aria-pressed="true"] { background: #eff6ff; color: #1d4ed8; border-color: #93c5fd; }
html.dark .svc-page .svc-chip { background: #374151; color: #e5e7eb; }
html.dark .svc-page .svc-chip[aria-pressed="true"] { background: #1e3a8a; color: #dbeafe; border-color: #3b82f6; }

.svc-page .svc-fee-list {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.svc-page .svc-fee-list > li[hidden] { display: none; }

.svc-page .svc-fee-group {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    padding: 0.6rem 0.25rem 0.1rem;
}

.svc-page .svc-fee-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 52px;
    padding: 0.6rem 0.85rem;
    border-radius: 0.9rem;
    background: #f8fafc;
    border: 1px solid transparent;
    text-align: start;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.svc-page .svc-fee-row:hover { border-color: #bfdbfe; background: #f1f7ff; }
.svc-page .svc-fee-row:focus-visible { outline: 3px solid #93c5fd; outline-offset: 1px; }
.svc-page .svc-fee-row.is-selected { border-color: #3b82f6; background: #eff6ff; }
html.dark .svc-page .svc-fee-row { background: #111827; }
html.dark .svc-page .svc-fee-row:hover, html.dark .svc-page .svc-fee-row.is-selected { background: #1e293b; border-color: #3b82f6; }

.svc-page .svc-fee-model {
    flex: 1 1 auto;
    min-width: 0;
    text-align: start;
    font: 600 0.9rem "Helvetica Neue", Arial, "Segoe UI", sans-serif;
    color: #111827;
}

.svc-page .svc-fee-model bdi { direction: ltr; unicode-bidi: isolate; }
html.dark .svc-page .svc-fee-model { color: #f3f4f6; }

.svc-page .svc-fee-price {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1d4ed8;
    white-space: nowrap;
}

.svc-page .svc-fee-price small { font-size: 0.68rem; font-weight: 400; color: #6b7280; margin-inline-start: 0.15rem; }
html.dark .svc-page .svc-fee-price { color: #93c5fd; }

.svc-page .svc-fee-row > svg { width: 0.9rem; height: 0.9rem; flex-shrink: 0; color: #9ca3af; }

.svc-page .svc-fee-empty {
    text-align: center;
    padding: 1.25rem 0.5rem 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 2;
}

.svc-page .svc-fee-empty[hidden] { display: none; }
.svc-page .svc-fee-empty a { color: #2563eb; font-weight: 600; }

.svc-page .svc-fee-more { margin-top: 0.75rem; }
.svc-page .svc-fee-more[hidden] { display: none; }

.svc-page .svc-fee-note {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #e5e7eb;
    font-size: 0.75rem;
    line-height: 1.9;
    color: #6b7280;
}

.svc-page .svc-fee-note svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.2rem; color: #3b82f6; }
html.dark .svc-page .svc-fee-note { border-color: #374151; color: #9ca3af; }

/* ---------- مسیر سه‌مرحله‌ای ---------- */
.svc-page .svc-stepper {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.svc-page .svc-stepper > li {
    position: relative;
    display: flex;
    gap: 0.85rem;
    padding-bottom: 1.25rem;
}

.svc-page .svc-stepper > li:last-child { padding-bottom: 0; }

.svc-page .svc-stepper > li:not(:last-child)::after {
    content: '';
    position: absolute;
    inset-inline-start: 1.35rem;
    top: 2.9rem;
    bottom: 0.2rem;
    width: 2px;
    background: #dbeafe;
}

html.dark .svc-page .svc-stepper > li:not(:last-child)::after { background: #374151; }

.svc-page .svc-step-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    flex-shrink: 0;
    border-radius: 0.9rem;
    background: #eff6ff;
    color: #2563eb;
}

.svc-page .svc-step-icon svg { width: 1.25rem; height: 1.25rem; }

.svc-page .svc-step-icon b {
    position: absolute;
    top: -0.35rem;
    inset-inline-end: -0.35rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: #3b82f6;
    color: #fff;
    font-size: 0.62rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

html.dark .svc-page .svc-step-icon { background: #1e293b; color: #93c5fd; }

.svc-page .svc-stepper h3 { font-size: 0.9rem; line-height: 1.7; }
.svc-page .svc-stepper p { font-size: 0.78rem; line-height: 1.9; color: #6b7280; margin-top: 0.1rem; }
html.dark .svc-page .svc-stepper p { color: #9ca3af; }

@media (min-width: 640px) {
    .svc-page .svc-stepper { flex-direction: row; gap: 1rem; }
    .svc-page .svc-stepper > li {
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.2rem 0.9rem;
        background: #fff;
        border: 1px solid #e5edf9;
        border-radius: 1.1rem;
    }
    .svc-page .svc-stepper > li:last-child { padding-bottom: 1.2rem; }
    .svc-page .svc-stepper > li:not(:last-child)::after { display: none; }
    html.dark .svc-page .svc-stepper > li { background: #1f2937; border-color: #374151; }
}

/* ---------- فرم مرحله‌ای ---------- */
.svc-page .svc-form-card {
    background: #fff;
    border: 1px solid #e5edf9;
    border-radius: 1.25rem;
    padding: 1.15rem 1rem 1.25rem;
    box-shadow: 0 14px 34px rgba(30, 64, 175, 0.07);
    max-width: 44rem;
    margin-inline: auto;
}

html.dark .svc-page .svc-form-card { background: #1f2937; border-color: #374151; box-shadow: none; }

@media (min-width: 768px) {
    .svc-page .svc-form-card { padding: 1.75rem 1.75rem 1.9rem; }
}

.svc-page .svc-form-title { font-size: 1.05rem; line-height: 1.7; }
.svc-page .svc-form-sub { font-size: 0.78rem; color: #6b7280; margin-top: 0.15rem; line-height: 1.9; }
html.dark .svc-page .svc-form-sub { color: #9ca3af; }

/* بدون JS همه مراحل دیده می‌شوند و نوار پیشرفت پنهان است؛ JS کلاس is-stepped را اضافه می‌کند */
.svc-page .svc-progress { display: none; margin: 1rem 0 1.1rem; }
.svc-page form.is-stepped .svc-progress { display: block; }
.svc-page form.is-stepped .svc-form-step:not(.is-active) { display: none; }

.svc-page .svc-progress-bars { display: flex; gap: 0.35rem; }

.svc-page .svc-progress-bars span {
    flex: 1 1 0;
    height: 0.3rem;
    border-radius: 999px;
    background: #e5e7eb;
    transition: background-color 0.25s;
}

.svc-page .svc-progress-bars span.is-done { background: #3b82f6; }
html.dark .svc-page .svc-progress-bars span { background: #374151; }
html.dark .svc-page .svc-progress-bars span.is-done { background: #3b82f6; }

.svc-page .svc-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.45rem;
    font-size: 0.72rem;
    color: #6b7280;
}

.svc-page .svc-progress-label strong { color: #1f2937; font-weight: 600; }
html.dark .svc-page .svc-progress-label strong { color: #f3f4f6; }

.svc-page .svc-form-step {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.svc-page form:not(.is-stepped) .svc-form-step + .svc-form-step { margin-top: 1.75rem; }

.svc-page .svc-step-legend { font-size: 0.9rem; font-weight: 600; color: #1f2937; padding: 0; margin-bottom: 0.25rem; }
html.dark .svc-page .svc-step-legend { color: #f3f4f6; }
.svc-page form.is-stepped .svc-step-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.svc-page .svc-field-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

@media (min-width: 640px) {
    .svc-page .svc-field-grid { grid-template-columns: 1fr 1fr; }
    .svc-page .svc-field--full { grid-column: 1 / -1; }
}

.svc-page .svc-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }

.svc-page .svc-field > label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

.svc-page .svc-field > label small { font-weight: 400; color: #9ca3af; }
html.dark .svc-page .svc-field > label { color: #e5e7eb; }

.svc-page .svc-input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    font-size: 16px; /* زیر ۱۶px، سافاری iOS هنگام فوکوس صفحه را زوم می‌کند */
    line-height: 1.6;
    color: #111827;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 0.8rem;
    outline: none;
    appearance: none;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.svc-page textarea.svc-input { min-height: 6rem; resize: vertical; }
.svc-page .svc-input::placeholder { color: #9ca3af; }
.svc-page .svc-input:hover { border-color: #e2e8f0; }
.svc-page .svc-input:focus { background: #fff; border-color: #818cf8; box-shadow: 0 0 0 3px #e0e7ff; }
.svc-page .svc-input.input-validation-error { border-color: #f87171; background: #fef2f2; }
.svc-page .svc-input[dir="ltr"] { text-align: left; }
.svc-page .svc-input[dir="ltr"]:placeholder-shown { text-align: right; direction: rtl; }
/* Dana ارقام را فارسی می‌کشد؛ IMEI، موبایل، ایمیل و نام مدل باید لاتین و خوانا باشند */
.svc-page .svc-input[dir="ltr"]:not(:placeholder-shown) { font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif; letter-spacing: 0.02em; }

html.dark .svc-page .svc-input { background: #111827; color: #f3f4f6; }
html.dark .svc-page .svc-input:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25); }
html.dark .svc-page .svc-input.input-validation-error { background: #2a1215; border-color: #f87171; }

.svc-page .svc-help { font-size: 0.72rem; line-height: 1.8; color: #6b7280; }
html.dark .svc-page .svc-help { color: #9ca3af; }
.svc-page .svc-ltr { direction: ltr; unicode-bidi: isolate; font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif; }

.svc-page .field-validation-error { font-size: 0.75rem; color: #dc2626; }
html.dark .svc-page .field-validation-error { color: #f87171; }

.svc-page .svc-form-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.svc-page .svc-form-actions .svc-btn--primary { flex: 1 1 auto; }
.svc-page form:not(.is-stepped) [data-step-next],
.svc-page form:not(.is-stepped) [data-step-prev] { display: none; }

.svc-page .svc-privacy {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    font-size: 0.72rem;
    line-height: 1.9;
    color: #6b7280;
}

.svc-page .svc-privacy svg { width: 0.95rem; height: 0.95rem; flex-shrink: 0; margin-top: 0.25rem; color: #22c55e; }
html.dark .svc-page .svc-privacy { color: #9ca3af; }

/* کارت مدل انتخاب‌شده از لیست عوارض */
.svc-page .svc-selected {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.svc-page .svc-selected[hidden] { display: none; }
html.dark .svc-page .svc-selected { background: #1e293b; border-color: #1e40af; }

.svc-page .svc-selected-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    border-radius: 0.7rem;
    background: #3b82f6;
    color: #fff;
}

.svc-page .svc-selected-icon svg { width: 1.2rem; height: 1.2rem; }
.svc-page .svc-selected-body { flex: 1 1 auto; min-width: 0; font-size: 0.75rem; color: #4b5563; line-height: 1.8; }
.svc-page .svc-selected-body strong { display: block; font-size: 0.85rem; color: #111827; }
html.dark .svc-page .svc-selected-body { color: #9ca3af; }
html.dark .svc-page .svc-selected-body strong { color: #f3f4f6; }

.svc-page .svc-link-btn {
    flex-shrink: 0;
    min-height: 40px;
    padding: 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2563eb;
    background: none;
    border: 0;
    cursor: pointer;
}

html.dark .svc-page .svc-link-btn { color: #93c5fd; }

/* ---------- کارت‌های سرویس اپل آیدی ---------- */
.svc-page .svc-plan-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }

@media (min-width: 640px) {
    .svc-page .svc-plan-grid { grid-template-columns: 1fr 1fr; }
}

.svc-page .svc-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem 1rem 1.05rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.svc-page .svc-plan:hover { border-color: #93c5fd; }
.svc-page .svc-plan.is-selected { border-color: #3b82f6; background: #f8fbff; box-shadow: 0 10px 26px rgba(59, 130, 246, 0.14); }
.svc-page .svc-plan.has-focus { outline: 3px solid #93c5fd; outline-offset: 2px; }
html.dark .svc-page .svc-plan { background: #111827; border-color: #374151; }
html.dark .svc-page .svc-plan.is-selected { background: #172033; border-color: #3b82f6; box-shadow: none; }

.svc-page .svc-plan input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }

/* بدون JS (کلاس is-selected گذاشته نمی‌شود) انتخاب با :has نشان داده می‌شود */
.svc-page .svc-plan:has(input:checked) { border-color: #3b82f6; }
.svc-page .svc-plan:has(input:checked) .svc-plan-radio { border-color: #3b82f6; background: #3b82f6; box-shadow: inset 0 0 0 3px #fff; }

.svc-page .svc-plan-head { display: flex; align-items: center; gap: 0.65rem; }

.svc-page .svc-plan-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 0.8rem;
    background: #eff6ff;
    color: #2563eb;
}

.svc-page .svc-plan-icon svg { width: 1.25rem; height: 1.25rem; }
html.dark .svc-page .svc-plan-icon { background: #1e293b; color: #93c5fd; }

.svc-page .svc-plan-title { font-size: 0.92rem; font-weight: 600; line-height: 1.6; color: #111827; }
html.dark .svc-page .svc-plan-title { color: #f3f4f6; }

.svc-page .svc-plan-radio {
    margin-inline-start: auto;
    width: 1.3rem;
    height: 1.3rem;
    flex-shrink: 0;
    border-radius: 999px;
    border: 2px solid #d1d5db;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.svc-page .svc-plan.is-selected .svc-plan-radio { border-color: #3b82f6; background: #3b82f6; box-shadow: inset 0 0 0 3px #fff; }
html.dark .svc-page .svc-plan.is-selected .svc-plan-radio { box-shadow: inset 0 0 0 3px #111827; }

.svc-page .svc-plan-price { font-size: 1.05rem; font-weight: 700; color: #1d4ed8; }
.svc-page .svc-plan-price small { font-size: 0.72rem; font-weight: 400; color: #6b7280; }
.svc-page .svc-plan-price--muted { font-size: 0.85rem; font-weight: 600; color: #4b5563; }
html.dark .svc-page .svc-plan-price { color: #93c5fd; }
html.dark .svc-page .svc-plan-price--muted { color: #d1d5db; }

.svc-page .svc-plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }

.svc-page .svc-plan-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.78rem;
    line-height: 1.8;
    color: #4b5563;
}

.svc-page .svc-plan-list svg { width: 0.95rem; height: 0.95rem; flex-shrink: 0; margin-top: 0.3rem; color: #22c55e; }
html.dark .svc-page .svc-plan-list li { color: #d1d5db; }

/* پیش‌نمایش زنده کارت در فرم + خلاصه سفارش */
.svc-page .svc-live-card { display: flex; justify-content: center; padding: 0.25rem 0 0.5rem; }
.svc-page .svc-live-card .svc-aid-card { max-width: 17rem; }

.svc-page .svc-summary {
    margin: 0;
    border-radius: 0.9rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

html.dark .svc-page .svc-summary { background: #111827; border-color: #374151; }

.svc-page .svc-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.82rem;
}

.svc-page .svc-summary > div + div { border-top: 1px solid #eef2f7; }
html.dark .svc-page .svc-summary > div + div { border-color: #1f2937; }
.svc-page .svc-summary dt { color: #6b7280; flex-shrink: 0; }
.svc-page .svc-summary dd { margin: 0; font-weight: 600; color: #111827; text-align: end; overflow-wrap: anywhere; }
html.dark .svc-page .svc-summary dd { color: #f3f4f6; }

.svc-page .svc-summary-total dd { color: #1d4ed8; font-size: 0.95rem; }
html.dark .svc-page .svc-summary-total dd { color: #93c5fd; }

.svc-page .svc-summary-note { font-size: 0.75rem; line-height: 1.9; color: #6b7280; }
.svc-page .svc-summary-note[hidden] { display: none; }
html.dark .svc-page .svc-summary-note { color: #9ca3af; }

/* ---------- کارت راهنما / نکات ---------- */
.svc-page .svc-help-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.1rem;
    border-radius: 1.15rem;
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

@media (min-width: 768px) {
    .svc-page .svc-help-card { grid-template-columns: 1fr 1fr; padding: 1.5rem; }
}

html.dark .svc-page .svc-help-card { background: #1e293b; border-color: #334155; }

.svc-page .svc-help-card h3 { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; margin-bottom: 0.5rem; }
.svc-page .svc-help-card h3 svg { width: 1.1rem; height: 1.1rem; color: #2563eb; }
html.dark .svc-page .svc-help-card h3 svg { color: #93c5fd; }

.svc-page .svc-help-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }

.svc-page .svc-help-card li {
    position: relative;
    padding-inline-start: 1rem;
    font-size: 0.8rem;
    line-height: 1.9;
    color: #4b5563;
}

.svc-page .svc-help-card li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.7rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: #3b82f6;
}

html.dark .svc-page .svc-help-card li { color: #cbd5e1; }

.svc-page .svc-banner img { display: block; width: 100%; height: auto; border-radius: 1.1rem; }

@media (min-width: 768px) {
    .svc-page .svc-banner { max-width: 46rem; margin-inline: auto; }
}

.svc-page .svc-faq-list { max-width: 46rem; margin-inline: auto; display: flex; flex-direction: column; gap: 0.6rem; }

@media (prefers-reduced-motion: reduce) {
    .svc-page .svc-live-pill::before,
    .svc-page .svc-btn.is-loading::after { animation: none; }
}
