/* ═══════════════════════════════════════════════════════════
   Arshia Customer Accounts — ورود پرروح
   Brand: purple #352070 + gold #EEBB66
   آیکون‌ها: SVG inline، بدون کتابخانه خارجی
   ═══════════════════════════════════════════════════════════ */

.arshia-acc-wrap,
.arshia-acc-auth,
.arshia-acc-profile {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    --acc-purple: #352070;
    --acc-purple-dark: #2a1a5a;
    --acc-purple-soft: #f4f1fb;
    --acc-gold: #EEBB66;
    --acc-gold-light: #f5cc85;
    --acc-gold-dark: #d9a341;
    --acc-border: #e8e6f0;
    --acc-text: #3d3b4f;
    --acc-muted: #7a7a8c;
}

/* ─── کانتینر با پس‌زمینه‌ی نرم ─── */
.arshia-acc-wrap {
    padding: 48px 16px;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(238, 187, 102, .14), transparent 60%),
        radial-gradient(760px 460px at 8% 108%, rgba(53, 32, 112, .12), transparent 62%),
        #faf9fd;
    border-radius: 22px;
}

/* ─── کارت ورود/ثبت‌نام ─── */
.arshia-acc-auth {
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: 20px;
    padding: 34px 30px;
    box-shadow: 0 18px 50px -22px rgba(53, 32, 112, .28),
                0 4px 14px -8px rgba(53, 32, 112, .14);
    position: relative;
    overflow: hidden;
    animation: accRise .45s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes accRise {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to   { opacity: 1; transform: none; }
}

/* نوار طلایی بالای کارت */
.arshia-acc-auth::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--acc-purple), var(--acc-gold), var(--acc-purple));
    background-size: 220% 100%;
    animation: accShimmer 3.2s linear infinite;
}

@keyframes accShimmer {
    from { background-position: 0 0; }
    to   { background-position: -220% 0; }
}

.arshia-acc-auth-login { max-width: 500px; }

/* ─── هدر با آیکون ─── */
.arshia-acc-auth-head {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--acc-border);
}

/* دایره‌ی آیکون لاگین */
.arshia-acc-auth-ico {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--acc-purple), var(--acc-purple-dark));
    box-shadow: 0 10px 26px -12px rgba(53, 32, 112, .65),
                inset 0 0 0 3px rgba(255, 255, 255, .12);
    position: relative;
    animation: accFloat 4s ease-in-out infinite;
}

.arshia-acc-auth-ico::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1.5px dashed rgba(53, 32, 112, .28);
    animation: accSpin 14s linear infinite;
}

@keyframes accFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes accSpin {
    from { transform: rotate(0); }
    to   { transform: rotate(360deg); }
}

.arshia-acc-auth-ico svg {
    width: 36px;
    height: 36px;
    stroke: var(--acc-gold);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.arshia-acc-auth-head h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
    color: var(--acc-purple);
    letter-spacing: -.3px;
}

.arshia-acc-auth-head p {
    margin: 0;
    font-size: 13.5px;
    color: var(--acc-muted);
    line-height: 1.9;
}

/* ─── تrásل پایین ─── */
.arshia-acc-auth-foot {
    text-align: center;
    font-size: 13px;
    color: #77778a;
    margin: 16px 0 0;
    line-height: 2;
}

.arshia-acc-auth-foot a {
    color: var(--acc-purple);
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: color .2s;
}

.arshia-acc-auth-foot a::after {
    content: "";
    position: absolute;
    right: 0; left: 0; bottom: -2px;
    height: 1.5px;
    background: var(--acc-gold-dark);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .28s ease;
}

.arshia-acc-auth-foot a:hover { color: var(--acc-gold-dark); }
.arshia-acc-auth-foot a:hover::after { transform: scaleX(1); }

/* ════════════════════════════════════════
   فرم
   ════════════════════════════════════════ */
.arshia-acc-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.arshia-acc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ─── فیلد با آیکون سمت راست ─── */
.arshia-acc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.arshia-acc-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--acc-text);
    display: flex;
    align-items: center;
    gap: 5px;
}

.arshia-acc-field label svg {
    width: 15px;
    height: 15px;
    stroke: var(--acc-gold-dark);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.arshia-acc-field .req { color: #dc2626; }

.arshia-acc-field input,
.arshia-acc-field textarea {
    font-family: inherit;
    font-size: 14px;
    padding: 12px 42px 12px 14px;   /* جای آیکون سمت راست */
    border: 1.5px solid var(--acc-border);
    border-radius: 11px;
    background: #fcfcfe;
    color: #333;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s, transform .2s;
    width: 100%;
    box-sizing: border-box;
}

.arshia-acc-field input:hover,
.arshia-acc-field textarea:hover {
    border-color: #d8d3e8;
    background: #fff;
}

.arshia-acc-field input:focus,
.arshia-acc-field textarea:focus {
    border-color: var(--acc-purple);
    box-shadow: 0 0 0 4px rgba(53, 32, 112, .12);
    background: #fff;
    transform: translateY(-1px);
}

.arshia-acc-field small {
    font-size: 11.5px;
    color: #9a9aa8;
}

/* آیکون داخل فیلد (ایمیل/قفل/کاربر) */
.arshia-acc-field-ico {
    position: absolute;
    right: 13px;
    bottom: 14px;
    width: 17px;
    height: 17px;
    stroke: #b3b0c4;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke .2s;
}

.arshia-acc-field:focus-within .arshia-acc-field-ico {
    stroke: var(--acc-gold-dark);
}

/* دکمه‌ی نمایش رمز */
.arshia-acc-pass-toggle {
    position: absolute;
    left: 10px;
    bottom: 9px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #b3b0c4;
    transition: background .2s, color .2s;
}

.arshia-acc-pass-toggle:hover {
    background: var(--acc-purple-soft);
    color: var(--acc-purple);
}

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

/* ════════════════════════════════════════
   دکمه‌ها
   ════════════════════════════════════════ */
.arshia-acc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .2s, color .2s, border-color .2s;
    text-align: center;
}

.arshia-acc-btn svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .25s ease;
}

.arshia-acc-btn.is-primary {
    background: linear-gradient(135deg, var(--acc-purple), #442a8f);
    color: #fff;
    border-color: var(--acc-purple);
    box-shadow: 0 8px 20px -10px rgba(53, 32, 112, .7);
}

.arshia-acc-btn.is-primary:hover {
    background: linear-gradient(135deg, var(--acc-gold), var(--acc-gold-dark));
    color: #1a1a2e;
    border-color: var(--acc-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -10px rgba(217, 163, 65, .75);
}

.arshia-acc-btn.is-primary:hover svg { transform: translateX(-4px); }
.arshia-acc-btn.is-primary:active { transform: translateY(0) scale(.985); }

.arshia-acc-btn.is-outline {
    background: #fff;
    color: var(--acc-purple);
    border-color: var(--acc-purple);
}

.arshia-acc-btn.is-outline:hover {
    background: var(--acc-purple);
    color: #fff;
    transform: translateY(-2px);
}

.arshia-acc-btn.is-lg {
    padding: 14px 32px;
    font-size: 15px;
    width: 100%;
}

/* ════════════════════════════════════════
   پیام‌ها
   ════════════════════════════════════════ */
.arshia-acc-notice {
    padding: 13px 16px 13px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.9;
    margin: 0 0 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: accRise .35s ease both;
}

.arshia-acc-notice svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    margin-top: 3px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.arshia-acc-notice.is-success { background: #e6f6ec; color: #166534; border: 1px solid #bde5cb; }
.arshia-acc-notice.is-error   { background: #fdeaea; color: #991b1b; border: 1px solid #f5c7c7; }
.arshia-acc-notice.is-info    { background: #eef4ff; color: #1e40af; border: 1px solid #c7dbff; }

/* ════════════════════════════════════════
   صفحه‌ی «ورود لازم است»
   ════════════════════════════════════════ */
.arshia-acc-login-required {
    background: #faf9fd;
    border: 1px dashed var(--acc-border);
    border-radius: 16px;
    padding: 42px 24px;
    text-align: center;
    font-size: 15px;
    color: var(--acc-muted);
    line-height: 2;
}

.arshia-acc-login-required p { margin: 0 0 16px; }

/* ════════════════════════════════════════
   پروفایل
   ════════════════════════════════════════ */
.arshia-acc-profile { max-width: 980px; margin: 0 auto; }

.arshia-acc-profile-head {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, var(--acc-purple), var(--acc-purple-dark));
    border-radius: 18px;
    padding: 26px 28px;
    color: #fff;
    margin-bottom: 22px;
    flex-wrap: wrap;
    box-shadow: 0 14px 34px -18px rgba(53, 32, 112, .8);
    position: relative;
    overflow: hidden;
}

.arshia-acc-profile-head::after {
    content: "";
    position: absolute;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238, 187, 102, .26), transparent 68%);
    top: -120px; left: -60px;
}

.arshia-acc-profile-head .arshia-acc-avatar img {
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .35);
    background: #fff;
    width: 74px;
    height: 74px;
}

.arshia-acc-profile-head h1 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.arshia-acc-profile-head p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
}

.arshia-acc-profile-head .arshia-acc-btn {
    margin-inline-start: auto;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
    position: relative;
    z-index: 1;
}

.arshia-acc-profile-head .arshia-acc-btn:hover {
    background: var(--acc-gold);
    color: #1a1a2e;
    border-color: var(--acc-gold);
}

.arshia-acc-profile-cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.arshia-acc-card {
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px -18px rgba(53, 32, 112, .35);
    transition: transform .25s ease, box-shadow .25s ease;
}

.arshia-acc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px -18px rgba(53, 32, 112, .45);
}

.arshia-acc-card h2 {
    margin: 0 0 16px;
    font-size: 16.5px;
    font-weight: 800;
    color: var(--acc-purple);
    display: flex;
    align-items: center;
    gap: 8px;
}

.arshia-acc-card h2 svg {
    width: 18px;
    height: 18px;
    stroke: var(--acc-gold-dark);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.arshia-acc-quick {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ════════════════════════════════════════
   ادمین
   ════════════════════════════════════════ */
.arshia-acc-admin .tablenav { margin-top: 12px; }

/* ════════════════════════════════════════
   واکنش‌گرا
   ════════════════════════════════════════ */
@media (max-width: 760px) {
    .arshia-acc-wrap { padding: 26px 10px; border-radius: 14px; }
    .arshia-acc-row { grid-template-columns: 1fr; }
    .arshia-acc-profile-cols { grid-template-columns: 1fr; }
    .arshia-acc-profile-head { flex-direction: column; text-align: center; }
    .arshia-acc-profile-head .arshia-acc-btn { margin-inline-start: 0; }
    .arshia-acc-auth { padding: 26px 18px; border-radius: 16px; }
    .arshia-acc-auth-head h1 { font-size: 21px; }
}
