/* pages/static/pages/css/shop_frontend/personal_account.css */
/* Уникальные стили страницы «Личный кабинет».
   Всё общее (.hero, section, .block-card, .callout, .lead,
   .feature-list, .reason-grid из checkout) — в shop_general.css. */

/* ============================================================
   AUTH METHODS — способы регистрации
   ============================================================ */
.auth-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0 4px;
}

.auth-method {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background-color 0.35s ease, border-color 0.35s ease;
}

.auth-method:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent);
}

.auth-method__icon {
    font-size: 1.7rem;
    margin-bottom: 10px;
    line-height: 1;
}

.auth-method__title {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.98rem;
    transition: color 0.35s ease;
}

/* ============================================================
   ORDERS DEMO — история заказов
   ============================================================ */
.orders-demo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 18px 0 4px;
}

.order-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: transform 0.2s ease, background-color 0.35s ease,
                border-color 0.35s ease;
}

.order-row:hover {
    transform: translateX(4px);
    border-color: var(--border-strong);
}

.order-row__num {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.35s ease;
}

.order-row__date {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.35s ease;
}

.order-row__sum {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    transition: color 0.35s ease;
}

.order-row__status {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.order-row__status--done {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.order-row__status--transit {
    background: rgba(108, 140, 255, 0.12);
    color: var(--accent);
}

.order-row__status--new {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
}

:root[data-theme="dark"] .order-row__status--done { color: #4ade80; }
:root[data-theme="dark"] .order-row__status--new { color: #fb923c; }

/* ============================================================
   STATUS TIMELINE — статусы заказов
   ============================================================ */
.status-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 18px 0 4px;
    padding-left: 4px;
}

.status-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    gap: 16px;
    position: relative;
    padding: 10px 0;
}

.status-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 50px;
    bottom: -10px;
    width: 2px;
    background: var(--border);
    transition: background-color 0.35s ease;
}

.status-step--done:not(:last-child)::before {
    background: #22c55e;
}

.status-step__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    z-index: 1;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.status-step--done .status-step__dot {
    background: #22c55e;
    border-color: #22c55e;
    color: #ffffff;
}

.status-step--active .status-step__dot {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-contrast);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.status-step--cancel .status-step__dot {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

.status-step__title {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.98rem;
    margin-bottom: 4px;
    transition: color 0.35s ease;
}

.status-step__text {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
    transition: color 0.35s ease;
}

/* ============================================================
   TRACKING DEMO — трек-номер
   ============================================================ */
.tracking-demo {
    margin: 18px 0 4px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.tracking-demo__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.35s ease;
}

.tracking-demo__row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.tracking-demo__code {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.tracking-demo__button {
    padding: 12px 22px;
    background: var(--accent);
    color: var(--accent-contrast);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.tracking-demo__button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn);
}

/* ============================================================
   PROFILE DEMO — личные данные
   ============================================================ */
.profile-demo {
    margin: 18px 0 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.profile-demo__row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.35s ease, background-color 0.25s;
}

.profile-demo__row:last-child {
    border-bottom: none;
}

.profile-demo__row:hover {
    background: var(--bg-hover);
}

.profile-demo__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.35s ease;
}

.profile-demo__value {
    font-size: 0.95rem;
    color: var(--text-heading);
    font-weight: 500;
    transition: color 0.35s ease;
}

/* ============================================================
   BONUS DEMO — бонусы и баллы
   ============================================================ */
.bonus-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 18px 0;
}

.bonus-demo__balance {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--accent-contrast);
    border-radius: 14px;
    padding: 24px 22px;
    box-shadow: var(--shadow-accent);
    transition: background 0.35s ease;
}

.bonus-demo__label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.85;
    margin-bottom: 8px;
    font-weight: 600;
}

.bonus-demo__value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.bonus-demo__info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.bonus-demo__info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
    transition: color 0.35s ease, border-color 0.35s ease;
}

.bonus-demo__info-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.bonus-demo__info-row span:last-child {
    font-weight: 700;
    color: var(--text-heading);
}

.bonus-demo__info-row--warn span:last-child {
    color: #ea580c;
}

:root[data-theme="dark"] .bonus-demo__info-row--warn span:last-child {
    color: #fb923c;
}

/* ============================================================
   NOTIFY DEMO — уведомления
   ============================================================ */
.notify-demo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0 4px;
}

.notify-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background-color 0.35s ease, border-color 0.35s ease;
}

.notify-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.notify-item--order {
    border-left-color: var(--accent);
}

.notify-item--promo {
    border-left-color: #22c55e;
}

.notify-item--wish {
    border-left-color: #ef4444;
}

.notify-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notify-item--promo .notify-item__icon {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.notify-item--wish .notify-item__icon {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

:root[data-theme="dark"] .notify-item--promo .notify-item__icon { color: #4ade80; }

.notify-item__title {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.98rem;
    margin-bottom: 4px;
    transition: color 0.35s ease;
}

.notify-item__text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
    transition: color 0.35s ease;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 900px) {
    .auth-methods {
        grid-template-columns: 1fr;
    }

    .bonus-demo {
        grid-template-columns: 1fr;
    }

    .profile-demo__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .order-row {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 6px 12px;
    }

    .order-row__num { grid-column: 1; grid-row: 1; }
    .order-row__date { grid-column: 2; grid-row: 1; text-align: right; }
    .order-row__sum { grid-column: 1; grid-row: 2; text-align: left; }
    .order-row__status { grid-column: 2; grid-row: 2; justify-self: end; }
}

@media (max-width: 700px) {
    .tracking-demo__row {
        flex-direction: column;
    }

    .tracking-demo__button {
        justify-content: center;
    }

    .reason-grid {
        grid-template-columns: 1fr;
    }
}