/* ═══════════════════════════════════════════════════════
   صفحه حساب کاربری عرقیات — Account Upgrade CSS
═══════════════════════════════════════════════════════ */

.acc-body { background: #f0f4f0; font-family: 'Vazirmatn', 'IRANSans', system-ui, sans-serif; }

/* ── Loading ─────────────────────────────────────────── */
.acc-loading {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-height: 60vh; gap: 14px; color: #64748b;
}
.acc-loading__spinner {
    width: 36px; height: 36px; border: 3px solid #d4e0d2;
    border-top-color: #2d6a4f; border-radius: 50%;
    animation: acc-spin .7s linear infinite;
}
@keyframes acc-spin { to { transform: rotate(360deg); } }
.acc-loading p { margin: 0; font-size: .875rem; }

/* ── Login ───────────────────────────────────────────── */
.acc-login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #40916c 100%);
}
.acc-login-box {
    width: 380px; background: #fff; border-radius: 20px;
    overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.acc-login-box__head {
    background: linear-gradient(135deg, #1b4332, #40916c);
    padding: 32px 28px; text-align: center; color: #fff;
}
.acc-login-box__logo { font-size: 2.5rem; margin-bottom: 10px; }
.acc-login-box__head h2 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; }
.acc-login-box__head p  { margin: 0; font-size: .78rem; opacity: .75; }
.acc-login-box__body { padding: 28px; }
.acc-form { display: flex; flex-direction: column; gap: 14px; }
.acc-demo-hint {
    font-size: .75rem; font-family: monospace; color: #40916c;
    background: #d8f3dc; padding: 7px 12px; border-radius: 8px;
    text-align: center; margin: 0;
}
.acc-login-box__links {
    text-align: center; margin-top: 16px; font-size: .78rem; color: #64748b;
}
.acc-login-box__links a { color: #2d6a4f; text-decoration: none; }
.acc-login-box__links a:hover { text-decoration: underline; }

/* ── Header ──────────────────────────────────────────── */
.acc-header {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 60%, #40916c 100%);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px; height: 64px;
    box-shadow: 0 4px 20px rgba(27,67,50,.3);
    position: sticky; top: 0; z-index: 100;
}
.acc-header__brand { display: flex; align-items: center; gap: 12px; }
.acc-header__logo  { font-size: 1.5rem; text-decoration: none; }
.acc-header__title { color: #fff; font-size: .95rem; font-weight: 700; line-height: 1.2; }
.acc-header__sub   { color: rgba(255,255,255,.65); font-size: .7rem; }
.acc-header__actions { display: flex; gap: 8px; }
.acc-header__btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border: 1.5px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.12); color: #fff;
    font-family: inherit; font-size: .78rem; font-weight: 600;
    border-radius: 8px; text-decoration: none; cursor: pointer;
    transition: background .15s;
}
.acc-header__btn:hover { background: rgba(255,255,255,.25); color: #fff; }
.acc-header__btn--logout { border-color: rgba(255,100,100,.4); }
.acc-header__btn--logout:hover { background: rgba(239,68,68,.2); }

/* ── Notice ──────────────────────────────────────────── */
.acc-notice {
    padding: 14px 28px; font-size: .85rem; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.acc-notice--ok   { background: #dcfce7; color: #15803d; border-bottom: 1px solid #bbf7d0; }
.acc-notice--warn { background: #fef3c7; color: #92400e; border-bottom: 1px solid #fde68a; }
.acc-notice--err  { background: #fee2e2; color: #991b1b; border-bottom: 1px solid #fecaca; }

/* ── Layout ──────────────────────────────────────────── */
.acc-layout { display: flex; min-height: calc(100vh - 64px); }
.acc-main   { flex: 1; min-width: 0; padding: 28px; overflow-y: auto; }

/* ── Sidebar ─────────────────────────────────────────── */
.acc-sidebar {
    width: 240px; flex-shrink: 0; background: #fff;
    border-left: 1px solid #e2e8f0; display: flex;
    flex-direction: column; padding: 20px 0;
    box-shadow: -2px 0 10px rgba(0,0,0,.04);
}
.acc-user-card {
    display: flex; align-items: center; gap: 12px;
    padding: 0 20px 20px; border-bottom: 1px solid #f1f5f9; margin-bottom: 12px;
}
.acc-user-card__avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #d8f3dc, #40916c);
    color: #1b4332; font-weight: 800; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.acc-user-card__info strong { display: block; font-size: .85rem; color: #0f1f0e; font-weight: 700; }
.acc-user-card__info span   { font-size: .72rem; color: #64748b; }

.acc-nav { display: flex; flex-direction: column; padding: 0; }
.acc-nav__item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 20px; border: none; background: none;
    font-family: inherit; font-size: .84rem; font-weight: 500;
    color: #475569; cursor: pointer; text-align: right;
    position: relative; transition: background .12s, color .12s;
}
.acc-nav__item:hover { background: #f1f5f9; color: #1b4332; }
.acc-nav__item--on {
    background: #f0faf5; color: #1b4332; font-weight: 700;
}
.acc-nav__item--on::before {
    content: ''; position: absolute; right: 0; top: 4px; bottom: 4px;
    width: 3px; background: #2d6a4f; border-radius: 0 3px 3px 0;
}
.acc-nav__icon { font-size: 1rem; width: 28px; text-align: center; }
.acc-nav__badge {
    margin-right: auto; background: #ef4444; color: #fff;
    font-size: .6rem; font-weight: 700; padding: 1px 6px;
    border-radius: 10px; min-width: 18px; text-align: center;
}
.acc-sidebar__back {
    display: block; padding: 14px 20px; font-size: .78rem;
    color: #64748b; text-decoration: none; margin-top: auto;
    border-top: 1px solid #f1f5f9;
}
.acc-sidebar__back:hover { color: #2d6a4f; }

/* ── Welcome banner ──────────────────────────────────── */
.acc-welcome {
    background: linear-gradient(135deg, #1b4332, #40916c);
    border-radius: 16px; padding: 24px 28px; color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.acc-welcome h2 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; }
.acc-welcome p  { margin: 0; opacity: .8; font-size: .82rem; }

/* ── Stat cards ──────────────────────────────────────── */
.acc-stat-grid {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 14px; margin-bottom: 24px;
}
.acc-stat-card {
    background: #fff; border-radius: 14px; padding: 18px;
    display: flex; align-items: center; gap: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: transform .15s, box-shadow .15s;
}
.acc-stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.acc-stat-card__icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.acc-stat-card__icon--blue   { background: #dbeafe; }
.acc-stat-card__icon--green  { background: #dcfce7; }
.acc-stat-card__icon--amber  { background: #fef3c7; }
.acc-stat-card__val   { font-size: 1.4rem; font-weight: 800; color: #0f1f0e; }
.acc-stat-card__label { font-size: .72rem; color: #64748b; }

/* ── Card ────────────────────────────────────────────── */
.acc-card {
    background: #fff; border-radius: 14px; border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,.04); margin-bottom: 18px; overflow: hidden;
}
.acc-card--sticky { position: sticky; top: 20px; }
.acc-card__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid #f1f5f9;
}
.acc-card__title { font-size: .875rem; font-weight: 700; color: #0f1f0e; }

/* ── Table ───────────────────────────────────────────── */
.acc-table-wrap { overflow-x: auto; }
.acc-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.acc-table th {
    padding: 11px 16px; text-align: right; font-size: .7rem;
    font-weight: 700; color: #64748b; background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
}
.acc-table td { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; color: #334155; vertical-align: middle; }
.acc-table tbody tr:last-child td { border-bottom: none; }
.acc-table tbody tr:hover td { background: #f8fafc; }
.acc-table__empty { text-align: center; color: #94a3b8; padding: 36px !important; }

/* ── Badge ───────────────────────────────────────────── */
.acc-badge {
    display: inline-flex; align-items: center; padding: 3px 10px;
    border-radius: 20px; font-size: .7rem; font-weight: 700;
}
.acc-badge--green  { background: #dcfce7; color: #15803d; }
.acc-badge--blue   { background: #dbeafe; color: #1d4ed8; }
.acc-badge--amber  { background: #fef3c7; color: #92400e; }
.acc-badge--red    { background: #fee2e2; color: #991b1b; }
.acc-badge--gray   { background: #f1f5f9; color: #475569; }

/* ── Quick cards ─────────────────────────────────────── */
.acc-quick-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.acc-quick-card {
    background: #fff; border: 2px solid #e2e8f0; border-radius: 14px;
    padding: 18px; display: flex; flex-direction: column; gap: 4px;
    cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s;
    text-decoration: none; font-family: inherit; text-align: right;
}
.acc-quick-card:hover {
    transform: translateY(-3px); border-color: #2d6a4f;
    box-shadow: 0 8px 24px rgba(27,67,50,.1);
}
.acc-quick-card__icon  { font-size: 1.5rem; }
.acc-quick-card__label { font-weight: 700; font-size: .875rem; color: #0f1f0e; }
.acc-quick-card__sub   { font-size: .72rem; color: #64748b; }
.acc-quick-card__arrow { font-size: .8rem; color: #94a3b8; margin-top: 6px; }
.acc-quick-card--green { background: #f0faf5; border-color: #b7e4c7; }
.acc-quick-card--green:hover { border-color: #2d6a4f; }
.acc-quick-card--dark  { background: #1b4332; border-color: #1b4332; color: #fff; }
.acc-quick-card--dark .acc-quick-card__label,
.acc-quick-card--dark .acc-quick-card__sub,
.acc-quick-card--dark .acc-quick-card__arrow { color: rgba(255,255,255,.8); }
.acc-quick-card--dark:hover { border-color: #40916c; background: #2d6a4f; }

/* ── Page header ─────────────────────────────────────── */
.acc-page-head { margin-bottom: 20px; }
.acc-page-head h2 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; color: #0f1f0e; }
.acc-page-head p  { margin: 0; font-size: .8rem; color: #64748b; }

/* ── Empty state ─────────────────────────────────────── */
.acc-empty {
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; padding: 60px 20px; text-align: center;
    background: #fff; border-radius: 14px; border: 1px solid #e2e8f0;
}
.acc-empty__icon { font-size: 2.5rem; }
.acc-empty p { margin: 0; color: #64748b; font-size: .875rem; }

/* ── Checkout ────────────────────────────────────────── */
.acc-checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }

/* ── Profile grid ────────────────────────────────────── */
.acc-profile-grid { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.acc-profile-card {
    background: #fff; border-radius: 14px; border: 1px solid #e2e8f0;
    padding: 24px 20px; text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    display: flex; flex-direction: column; align-items: center;
}
.acc-profile-card__avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #d8f3dc, #40916c);
    color: #1b4332; font-weight: 800; font-size: 1.75rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.acc-profile-card__name  { font-size: 1rem; font-weight: 700; color: #0f1f0e; margin-bottom: 4px; }
.acc-profile-card__phone { font-size: .8rem; color: #64748b; }
.acc-profile-fact {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 10px; background: #f8fafc; border-radius: 8px;
    font-size: .78rem;
}
.acc-profile-fact span:first-child { color: #64748b; }

/* ── Options (shipping/payment) ──────────────────────── */
.acc-option {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
    border: 2px solid #e2e8f0; border-radius: 12px; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.acc-option:has(input:checked) { border-color: #2d6a4f; background: #f0faf5; }
.acc-option input[type="radio"] { accent-color: #2d6a4f; margin-top: 2px; }
.acc-option__box { display: flex; flex-direction: column; gap: 2px; }
.acc-option__title { font-weight: 700; font-size: .85rem; color: #0f1f0e; }
.acc-option__desc  { font-size: .72rem; color: #64748b; }

/* ── Form ────────────────────────────────────────────── */
.acc-field { display: flex; flex-direction: column; gap: 5px; }
.acc-field label { font-size: .78rem; font-weight: 600; color: #374151; }
.acc-input {
    padding: 10px 13px; border: 1.5px solid #d4e0d2; border-radius: 9px;
    font-family: inherit; font-size: .85rem; background: #fff; color: #1e293b;
    transition: border-color .15s, box-shadow .15s; outline: none;
}
.acc-input:focus { border-color: #40916c; box-shadow: 0 0 0 3px rgba(64,145,108,.15); }
.acc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Buttons ─────────────────────────────────────────── */
.acc-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border: 1.5px solid #e2e8f0; background: #fff;
    color: #374151; font-family: inherit; font-size: .82rem;
    font-weight: 700; border-radius: 10px; cursor: pointer;
    transition: background .12s, border-color .12s, transform .1s;
    text-decoration: none;
}
.acc-btn:hover { background: #f8fafc; border-color: #94a3b8; }
.acc-btn:active { transform: scale(.98); }
.acc-btn--primary {
    background: linear-gradient(135deg, #1b4332, #2d6a4f);
    border-color: #1b4332; color: #fff;
    box-shadow: 0 4px 14px rgba(27,67,50,.3);
}
.acc-btn--primary:hover { opacity: .9; color: #fff; }
.acc-btn--success {
    background: linear-gradient(135deg, #15803d, #16a34a);
    border-color: #15803d; color: #fff;
    box-shadow: 0 4px 14px rgba(21,128,61,.3);
}
.acc-btn--success:hover { opacity: .9; color: #fff; }
.acc-btn--white { background: #fff; color: #1b4332; border-color: transparent; }
.acc-btn--white:hover { background: rgba(255,255,255,.9); color: #1b4332; }
.acc-btn--block  { width: 100%; justify-content: center; }
.acc-btn--sm { padding: 7px 14px; font-size: .75rem; }
.acc-btn--lg { padding: 14px 24px; font-size: .9rem; border-radius: 12px; }
.acc-btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ── Messages ────────────────────────────────────────── */
.acc-msg { font-size: .8rem; padding: 9px 14px; border-radius: 9px; }
.acc-msg--ok  { background: #dcfce7; color: #15803d; }
.acc-msg--err { background: #fee2e2; color: #991b1b; }
.acc-alert { padding: 10px 14px; border-radius: 9px; font-size: .82rem; margin-bottom: 12px; }
.acc-alert--err { background: #fee2e2; color: #991b1b; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .acc-checkout-grid { grid-template-columns: 1fr; }
    .acc-profile-grid  { grid-template-columns: 1fr; }
    .acc-sidebar { width: 200px; }
}
@media (max-width: 768px) {
    .acc-layout { flex-direction: column; }
    .acc-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; padding: 8px 0;
                   border-left: none; border-bottom: 1px solid #e2e8f0; }
    .acc-user-card { border-bottom: none; margin-bottom: 0; padding-bottom: 8px; }
    .acc-nav { flex-direction: row; flex-wrap: wrap; }
    .acc-nav__item { padding: 8px 14px; }
    .acc-nav__item--on::before { display: none; }
    .acc-sidebar__back { display: none; }
    .acc-main { padding: 16px; }
    .acc-stat-grid  { grid-template-columns: 1fr; }
    .acc-quick-grid { grid-template-columns: 1fr; }
    .acc-field-row  { grid-template-columns: 1fr; }
    .acc-login-box  { width: 95vw; }
}
