/* ════════════════════════════════════════════════════════════
   پورتال ارشیا — استایل اختصاصی
   برند: بنفش #352070 + طلایی #EEBB66 | فونت Vazirmatn | RTL
   ────────────────────────────────────────────────────────────
   Mobile-first: استایل پایه برای موبایل، سپس @media برای دسکتاپ.
   ════════════════════════════════════════════════════════════ */

.arshia-portal-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 48px 0 64px;
    background:
        radial-gradient(600px 340px at 85% -10%, rgba(53, 32, 112, .07), transparent 65%),
        radial-gradient(480px 300px at 0% 110%, rgba(238, 187, 102, .10), transparent 60%),
        var(--bg-light, #f8f9fa);
}

.arshia-portal-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ════════════════════════════════════════════
   کارت مرکزی (لاگین / انتظار / پیام)
   ════════════════════════════════════════════ */
.arshia-portal-auth {
    width: 100%;
    display: flex;
    justify-content: center;
}

.arshia-portal-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid #e8e5f2;
    border-radius: 22px;
    padding: 32px 26px 28px;
    box-shadow: 0 24px 60px -28px rgba(53, 32, 112, .35);
    animation: arshia-portal-in .38s cubic-bezier(.22, 1, .36, 1);
}

.arshia-portal-card-pending {
    max-width: 560px;
    text-align: center;
}

.arshia-portal-card-wide {
    max-width: 720px;
}

.arshia-portal-notice.is-info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.arshia-portal-notice.is-info .arshia-portal-ico {
    font-size: 15px;
    line-height: 1.8;
}

/* ─── فیلدهای چندستونه ─── */
.arshia-portal-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.arshia-portal-field .req {
    color: #dc2626;
    font-weight: 700;
}

.arshia-portal-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ddd6ec;
    border-radius: 12px;
    font-size: 13.5px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #fff;
    color: #2b2840;
    resize: vertical;
    transition: border-color .2s, box-shadow .2s;
}

.arshia-portal-field textarea:focus {
    outline: none;
    border-color: #352070;
    box-shadow: 0 0 0 4px rgba(53, 32, 112, .12);
}

.arshia-portal-card-head {
    text-align: center;
    margin-bottom: 22px;
}

.arshia-portal-logo a {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
    margin-bottom: 14px;
}

.arshia-portal-mark {
    font-size: 26px;
    font-weight: 800;
    color: #352070;
    letter-spacing: -.5px;
}

.arshia-portal-sub {
    font-size: 15px;
    font-weight: 700;
    color: #EEBB66;
}

.arshia-portal-card-head h1 {
    font-size: 21px;
    font-weight: 800;
    color: #2b2840;
    margin: 0 0 6px;
}

.arshia-portal-card-head p {
    font-size: 13.5px;
    color: #6b6780;
    margin: 0;
    line-height: 1.9;
}

/* ─── اعلان‌ها ─── */
.arshia-portal-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 16px;
    animation: arshia-portal-in .3s ease;
}

.arshia-portal-notice.is-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.arshia-portal-notice.is-success {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #065f46;
}

.arshia-portal-notice .arshia-portal-ico {
    flex-shrink: 0;
    font-size: 15px;
    line-height: 1.8;
}

/* ─── فیلدها ─── */
.arshia-portal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.arshia-portal-field {
    display: flex;
    flex-direction: column;
}

.arshia-portal-field label {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 7px;
}

.arshia-portal-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.arshia-portal-input-wrap input {
    width: 100%;
    padding: 13px 42px 13px 42px;
    border: 1.5px solid #ddd6ec;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #fff;
    color: #2b2840;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.arshia-portal-input-wrap input:focus {
    outline: none;
    border-color: #352070;
    box-shadow: 0 0 0 4px rgba(53, 32, 112, .12);
    transform: translateY(-1px);
}

.arshia-portal-input-wrap input::placeholder {
    color: #b7b3c7;
}

/* آیکون سمت راست (RTL) */
.arshia-portal-field-ico {
    position: absolute;
    right: 13px;
    width: 19px;
    height: 19px;
    pointer-events: none;
    color: #9a96ad;
    transition: color .2s;
}

.arshia-portal-field-ico svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.arshia-portal-input-wrap input:focus ~ .arshia-portal-field-ico,
.arshia-portal-input-wrap input:focus + .arshia-portal-field-ico {
    color: #352070;
}

/* دکمه‌ی نمایش رمز (سمت چپ در RTL) */
.arshia-portal-pass-toggle {
    position: absolute;
    left: 8px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    color: #9a96ad;
    cursor: pointer;
    border-radius: 8px;
    transition: color .2s, background .2s;
}

.arshia-portal-pass-toggle:hover {
    color: #352070;
    background: #f4f1fb;
}

.arshia-portal-pass-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ─── دکمه‌ی اصلی ─── */
.arshia-portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14.5px;
    font-weight: 800;
    padding: 13px 24px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.arshia-portal-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.arshia-portal-btn.is-primary {
    background: linear-gradient(135deg, #352070, #4a3a8a);
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(53, 32, 112, .7);
}

.arshia-portal-btn.is-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(53, 32, 112, .85);
}

.arshia-portal-btn.is-ghost {
    background: #fff;
    color: #352070;
    border: 1.5px solid #d8d2ec;
    box-shadow: none;
}

.arshia-portal-btn.is-ghost:hover {
    background: #f4f1fb;
    border-color: #352070;
}

.arshia-portal-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── پاورقی فرم ─── */
.arshia-portal-auth-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12.5px;
    margin: 4px 0 0;
}

.arshia-portal-auth-foot a {
    color: #352070;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s;
}

.arshia-portal-auth-foot a:hover {
    color: #b8860b;
    text-decoration: underline;
}

.arshia-portal-auth-foot a.is-muted {
    color: #9a96ad;
    font-weight: 600;
}

.arshia-portal-sep {
    width: 1px;
    height: 14px;
    background: #e0dcef;
}

/* ════════════════════════════════════════════
   صفحه‌ی «در انتظار تأیید»
   ════════════════════════════════════════════ */
.arshia-portal-pending-ico {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #f4f0fc, #fdf3e0);
    border: 1px solid #e0d8f5;
    color: #352070;
    animation: arshia-portal-pulse 2.4s ease-in-out infinite;
}

.arshia-portal-pending-ico svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.arshia-portal-card-pending h1 {
    font-size: 20px;
    font-weight: 800;
    color: #2b2840;
    margin: 0 0 10px;
}

.arshia-portal-card-pending p {
    font-size: 13.5px;
    color: #6b6780;
    line-height: 2;
    margin: 0 auto 8px;
    max-width: 440px;
}

.arshia-portal-pending-company {
    font-size: 13px !important;
    color: #352070 !important;
    background: #f4f1fb;
    border: 1px dashed #cfc6ec;
    border-radius: 10px;
    padding: 8px 16px;
    display: inline-block;
    margin: 6px auto 18px !important;
}

.arshia-portal-pending-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ════════════════════════════════════════════
   داشبورد پشتیبانی
   ════════════════════════════════════════════ */
.arshia-portal-dashboard {
    width: 100%;
    max-width: 1080px;
    direction: rtl;
}

.arshia-portal-dash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #352070 0%, #241a4d 55%, #1d1535 100%);
    color: #fff;
    border-radius: 20px;
    padding: 26px 28px;
    margin-bottom: 22px;
    box-shadow: 0 18px 40px -22px rgba(53, 32, 112, .55);
    position: relative;
    overflow: hidden;
}

.arshia-portal-dash-head::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(380px 220px at 90% -30%, rgba(238, 187, 102, .22), transparent 62%),
        radial-gradient(300px 200px at 0% 120%, rgba(109, 79, 196, .4), transparent 60%);
}

.arshia-portal-dash-head h1 {
    position: relative;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 5px;
}

.arshia-portal-dash-head p {
    position: relative;
    font-size: 13px;
    color: rgba(255, 255, 255, .78);
    margin: 0;
    line-height: 1.9;
}

.arshia-portal-verified-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(238, 187, 102, .14);
    border: 1px solid rgba(238, 187, 102, .5);
    color: #EEBB66;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 20px;
    padding: 7px 16px;
}

/* ─── کاشی‌های آمار ─── */
.arshia-portal-dash-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 22px;
}

.arshia-portal-dash-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e8e5f2;
    border-radius: 18px;
    padding: 20px 22px 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 28px -20px rgba(53, 32, 112, .35);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.arshia-portal-dash-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -20px rgba(53, 32, 112, .45);
    border-color: #cfc6ec;
}

.arshia-portal-tile-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f2eefa;
    display: grid;
    place-items: center;
    color: #352070;
    margin-bottom: 12px;
}

.arshia-portal-tile-ico svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.arshia-portal-tile-label {
    font-size: 12.5px;
    color: #7c7890;
    margin-bottom: 4px;
}

.arshia-portal-tile-value {
    font-size: 26px;
    font-weight: 800;
    color: #2b2840;
    letter-spacing: -.5px;
    line-height: 1.2;
}

.arshia-portal-dash-tile small {
    margin-top: 6px;
    font-size: 11.5px;
    color: #9a96ad;
}

/* ─── پنل‌ها ─── */
.arshia-portal-dash-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.arshia-portal-panel {
    background: #fff;
    border: 1px solid #e8e5f2;
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 12px 28px -22px rgba(53, 32, 112, .3);
}

.arshia-portal-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f2eefa;
}

.arshia-portal-panel-head h2 {
    margin: 0;
    font-size: 15.5px;
    font-weight: 800;
    color: #352070;
}

.arshia-portal-link {
    font-size: 12.5px;
    font-weight: 700;
    color: #352070;
    text-decoration: none;
}

.arshia-portal-link:hover {
    text-decoration: underline;
}

.arshia-portal-empty {
    text-align: center;
    padding: 26px 14px;
    color: #9a96ad;
    font-size: 13px;
    background: #faf9fd;
    border: 1px dashed #d8d2ec;
    border-radius: 12px;
    margin: 0;
}

.arshia-portal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.arshia-portal-list li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 11px 4px;
    border-bottom: 1px solid #f4f2f9;
}

.arshia-portal-list li:last-child {
    border-bottom: none;
}

.arshia-portal-list a {
    font-size: 13.5px;
    font-weight: 700;
    color: #2b2840;
    text-decoration: none;
}

.arshia-portal-list a:hover {
    color: #352070;
    text-decoration: underline;
}

.arshia-portal-list strong {
    font-size: 13.5px;
    color: #2b2840;
}

.arshia-portal-list-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: #9a96ad;
}

.arshia-portal-list code {
    font-size: 11.5px;
    background: #f4f1fb;
    border: 1px solid #e8e5f2;
    border-radius: 7px;
    padding: 2px 9px;
    color: #352070;
}

/* ─── پیل وضعیت ─── */
.arshia-portal-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 20px;
    white-space: nowrap;
    background: #f0ebfa;
    color: #352070;
}

.arshia-portal-pill.status-open { background: #fef9c3; color: #854d0e; }
.arshia-portal-pill.status-answered { background: #dbeafe; color: #1e40af; }
.arshia-portal-pill.status-closed { background: #e5e7eb; color: #374151; }

/* ════════════════════════════════════════════
   انیمیشن‌ها
   ════════════════════════════════════════════ */
@keyframes arshia-portal-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes arshia-portal-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(53, 32, 112, .14); }
    50%      { transform: scale(1.04); box-shadow: 0 0 0 14px rgba(53, 32, 112, 0); }
}

/* ════════════════════════════════════════════
   دسکتاپ (Mobile-first → افزایش)
   ════════════════════════════════════════════ */
@media (min-width: 640px) {
    .arshia-portal-card {
        padding: 38px 34px 32px;
    }

    .arshia-portal-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .arshia-portal-dash-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .arshia-portal-dash-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .arshia-portal-dash-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .arshia-portal-dash-cols {
        grid-template-columns: repeat(3, 1fr);
    }

    .arshia-portal-dash-head {
        padding: 32px 34px;
    }

    .arshia-portal-dash-head h1 {
        font-size: 24px;
    }
}
