/* Hesabım — srk.az panelinin dashboard komponentləri (page-header, alert, stat-card, panel, chip, empty-state) əsasında */
.sc-account { padding-top: 28px; padding-bottom: 64px; }

.sc-account__header {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 20px; margin-bottom: 22px;
}
.sc-account__crumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin: 0 0 10px; font-size: 12.5px; color: var(--sc-text-muted);
}
.sc-account__header h1 { margin: 0; font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
/* Header-dəki "Sifariş et" yalnız burger rejimində (≤1180px) gizlənir; səhifədəki düymə də ancaq onda görünür */
.sc-account__cta { display: none; gap: 8px; }
.sc-account__cta-icon, .sc-account__btn-icon { width: 18px; height: 18px; }
.sc-account__wide { width: 100%; gap: 8px; }

/* Xəbərdarlıq zolaqları */
.sc-account__alerts { display: grid; gap: 10px; margin-bottom: 20px; }
.sc-alert {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    border-radius: var(--sc-radius); font-size: 14px; font-weight: 600;
}
.sc-alert > span { flex: 1; }
.sc-alert strong { font-weight: 800; }
.sc-alert--warning { color: var(--sc-warning); background: var(--sc-warning-bg); }
.sc-alert--success { color: var(--sc-success); background: var(--sc-success-bg); }
.sc-alert__icon { width: 20px; height: 20px; flex: none; }
.sc-alert__action { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: inherit; white-space: nowrap; }
.sc-alert__action:hover { text-decoration: underline; }
.sc-alert__arrow { width: 16px; height: 16px; }

/* İki sütun: əsas + yan */
.sc-account__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 20px; align-items: start; }
.sc-account__main, .sc-account__side { display: grid; gap: 20px; min-width: 0; }

/* Göstərici kartları */
.sc-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 14px; }
.sc-stat-card {
    /* Üst sətirdə ikon + say, altda bütün eni tutan yazı (yazı iki sətrə bölünmür) */
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 10px; padding: 16px 18px;
    border: 1px solid var(--sc-line); border-radius: 22px;
    background: var(--sc-surface); box-shadow: var(--sc-shadow-card); color: var(--sc-text);
    transition: border-color .15s;
}
.sc-stat-card:hover { border-color: var(--sc-accent); }
.sc-stat-card__icon {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
    color: var(--sc-accent); background: var(--sc-icon-chip-bg);
}
.sc-stat-card__icon svg { width: 22px; height: 22px; }
.sc-stat-card--info .sc-stat-card__icon { color: var(--sc-info); background: var(--sc-info-bg); }
.sc-stat-card--warning .sc-stat-card__icon { color: var(--sc-warning); background: var(--sc-warning-bg); }
.sc-stat-card--success .sc-stat-card__icon { color: var(--sc-success); background: var(--sc-success-bg); }
.sc-stat-card__value {
    display: block; font-size: clamp(24px, 6vw, 30px); font-weight: 800;
    letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums;
}
.sc-stat-card__body { display: contents; }
.sc-stat-card__label { grid-column: 1 / -1; display: block; font-size: 12.5px; font-weight: 600; color: var(--sc-text-muted); }

/* Panel */
.sc-panel {
    border: 1px solid var(--sc-line); border-radius: 22px; overflow: hidden;
    background: var(--sc-surface); box-shadow: var(--sc-shadow-card);
}
.sc-panel__header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 20px; border-bottom: 1px solid var(--sc-line);
}
.sc-panel__title { margin: 0; font-size: 16px; font-weight: 800; }
.sc-panel__count { margin-left: 8px; vertical-align: 2px; }
.sc-panel__link { font-size: 13.5px; font-weight: 700; color: var(--sc-accent); }
.sc-panel__link:hover { color: var(--sc-accent-dark); }

.sc-empty { padding: 40px 20px; text-align: center; color: var(--sc-text-muted); }
.sc-empty h3 { margin: 0 0 6px; font-size: 17px; color: var(--sc-text); }
.sc-empty p { margin: 0 0 12px; font-size: 14px; }
.sc-empty--small { padding: 24px 20px; }
.sc-empty--small p { margin: 0; }

/* Etiketlər */
.sc-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
    color: var(--sc-text-muted); background: var(--sc-bg); border: 1px solid var(--sc-line);
}
.sc-chip--info { color: var(--sc-info); background: var(--sc-info-bg); border-color: transparent; }
.sc-chip--warning { color: var(--sc-warning); background: var(--sc-warning-bg); border-color: transparent; }
.sc-chip--success { color: var(--sc-success); background: var(--sc-success-bg); border-color: transparent; }
.sc-chip--danger { color: var(--sc-accent); background: var(--sc-icon-chip-bg); border-color: transparent; }

/* Aktiv bağlamalar */
.sc-parcels { margin: 0; padding: 0; list-style: none; }
/* Geniş ekranda düymələr başlıq sətrində, mobildə kartın altında */
.sc-parcel {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 12px;
    grid-template-areas: "title actions" "steps steps" "meta meta";
    padding: 16px 20px; border-bottom: 1px solid var(--sc-line);
}
.sc-parcel:last-child { border-bottom: 0; }
.sc-parcel__top { display: contents; }
.sc-parcel__title { grid-area: title; min-width: 0; }
.sc-parcel .sc-steps { grid-area: steps; }
.sc-parcel__meta { grid-area: meta; }
.sc-parcel__title strong { display: block; font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sc-parcel__title small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--sc-text-muted); }
.sc-parcel__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--sc-text-muted); }
.sc-parcel__meta > span:not(.sc-chip) + span:not(.sc-chip)::before { content: "·"; margin-right: 8px; }

/* Bağlamanın düymələri: tərkibi və hərəkətlər */
.sc-parcel__actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 8px; }
.sc-parcel__action {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
    border: 1px solid var(--sc-border); border-radius: 10px; background: transparent;
    color: var(--sc-text); font-size: 13px; font-weight: 600; cursor: pointer;
}
.sc-parcel__action svg { width: 16px; height: 16px; color: var(--sc-text-muted); }
.sc-parcel__action:hover { border-color: var(--sc-accent); color: var(--sc-accent); }
.sc-parcel__action:hover svg { color: var(--sc-accent); }
.sc-parcel__action:disabled { opacity: .6; cursor: progress; }
.sc-parcel__action:focus-visible { outline: none; box-shadow: var(--sc-focus-ring); }

/* Pəncərə (srk.az .dialog) */
.sc-dialog {
    width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0;
    border: 0; border-radius: var(--sc-radius-large);
    background: var(--sc-surface); color: var(--sc-text); box-shadow: var(--sc-shadow-popover);
}
.sc-dialog::backdrop { background: rgba(8, 10, 14, .62); backdrop-filter: blur(3px); }
.sc-dialog__header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 24px; border-bottom: 1px solid var(--sc-line);
}
.sc-dialog__title { margin: 0; font-size: 18px; font-weight: 800; }
.sc-dialog__close {
    display: grid; place-items: center; flex: none; width: 36px; height: 36px;
    border: 0; border-radius: 10px; background: transparent; color: var(--sc-text-muted); cursor: pointer;
}
.sc-dialog__close svg { width: 20px; height: 20px; }
.sc-dialog__close:hover { color: var(--sc-text); background: var(--sc-bg); }
.sc-dialog__body { padding: 24px; }

/* Hərəkətlər (srk.az .timeline) */
.sc-timeline { margin: 0; padding: 0; list-style: none; }
.sc-timeline__item { position: relative; display: grid; gap: 2px; padding: 0 0 22px 30px; color: var(--sc-text-muted); }
.sc-timeline__item:last-child { padding-bottom: 0; }
.sc-timeline__item::before {
    content: ""; position: absolute; left: 6px; top: 16px; bottom: -2px;
    border-left: 2px dashed var(--sc-line);
}
.sc-timeline__item:last-child::before { display: none; }
.sc-timeline__item.is-done::before { border-left: 2px solid var(--sc-accent); }
.sc-timeline__item.is-current::before { border-left: 2px dashed var(--sc-line); }
.sc-timeline__dot { position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--sc-line); }
.sc-timeline__item.is-done .sc-timeline__dot { background: var(--sc-accent); }
.sc-timeline__item.is-current .sc-timeline__dot { background: var(--sc-surface); border: 4px solid var(--sc-accent); }
.sc-timeline__text { font-size: 14.5px; font-weight: 700; }
.sc-timeline__item.is-done .sc-timeline__text { color: var(--sc-text); }
.sc-timeline__date { font-size: 13px; font-variant-numeric: tabular-nums; }

/* Tərkibi */
.sc-items { margin: 0; padding: 0; list-style: none; }
.sc-items__row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 0; border-bottom: 1px solid var(--sc-line);
}
.sc-items__row:first-child { padding-top: 0; }
.sc-items__row:last-child { padding-bottom: 0; border-bottom: 0; }
.sc-items__main { display: grid; gap: 2px; min-width: 0; }
.sc-items__main small { font-size: 12px; color: var(--sc-text-muted); }
.sc-items__main a, .sc-items__main span { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.sc-items__main a { color: var(--sc-accent); text-decoration: none; }
.sc-items__main a:hover { text-decoration: underline; }
.sc-items__price { flex: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.sc-items__empty { margin: 0; color: var(--sc-text-muted); }

/* Addım çubuğu */
.sc-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px 0 12px; padding: 0; list-style: none; }
.sc-steps__item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sc-steps__item:not(:last-child)::after {
    content: ""; position: absolute; top: 5px; left: calc(50% + 10px); right: calc(-50% + 10px);
    height: 2px; border-radius: 2px; background: var(--sc-line);
}
.sc-steps__item.is-done::after { background: var(--sc-accent); }
.sc-steps__dot {
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--sc-line); background: var(--sc-surface);
}
.sc-steps__item.is-done .sc-steps__dot { border-color: var(--sc-accent); background: var(--sc-accent); }
.sc-steps__item.is-current .sc-steps__dot { border-color: var(--sc-accent); box-shadow: 0 0 0 4px rgba(255, 84, 83, .18); }
.sc-steps__label { margin-top: 6px; font-size: 11.5px; color: var(--sc-text-muted); }
.sc-steps__item.is-done .sc-steps__label { color: var(--sc-text); }
.sc-steps__item.is-current .sc-steps__label { color: var(--sc-text); font-weight: 700; }

/* Balans */
.sc-balance__row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px; border-bottom: 1px solid var(--sc-line);
}
.sc-balance__row:last-child { border-bottom: 0; }
.sc-balance__name { display: block; font-size: 12.5px; font-weight: 700; color: var(--sc-text-muted); }
.sc-balance__amount { display: block; margin: 2px 0 4px; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sc-balance__row small { display: block; font-size: 12px; color: var(--sc-text-muted); }
.sc-balance__add {
    display: grid; place-items: center; flex: none; width: 40px; height: 40px;
    border: 1px solid var(--sc-border); border-radius: 12px; color: var(--sc-accent);
}
.sc-balance__add svg { width: 18px; height: 18px; }
.sc-balance__add:hover { border-color: var(--sc-accent); background: var(--sc-icon-chip-bg); }

/* Son bildirişlər */
.sc-notices { margin: 0; padding: 0; list-style: none; }
.sc-notice { padding: 14px 20px; border-bottom: 1px solid var(--sc-line); }
.sc-notice:last-child { border-bottom: 0; }
.sc-notice strong { display: block; font-size: 13.5px; font-weight: 700; }
.sc-notice.is-unread strong::before {
    content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px;
    border-radius: 50%; background: var(--sc-accent); vertical-align: middle;
}
.sc-notice p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--sc-text-muted); }
.sc-notice time { display: block; margin-top: 6px; font-size: 11.5px; color: var(--sc-text-muted); }

/* Profil kartı */
.sc-profile-card { display: grid; justify-items: center; gap: 12px; padding: 22px 20px 20px; text-align: center; }
.sc-profile-card__avatar { position: relative; margin: 0; }
.sc-profile-card__avatar img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.sc-profile-card__camera {
    position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center;
    width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
    border: 1px solid var(--sc-line); background: var(--sc-surface); color: var(--sc-text);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.sc-profile-card__camera svg { width: 15px; height: 15px; }
.sc-profile-card__camera:hover { color: var(--sc-accent); }
.sc-profile-card__name strong { display: block; font-size: 16px; font-weight: 700; }
.sc-profile-card__name small { font-size: 12.5px; color: var(--sc-text-muted); }
.sc-profile-card__info { display: grid; gap: 6px; width: 100%; margin: 0; padding: 0; list-style: none; }
.sc-profile-card__info li {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 13px; color: var(--sc-text-muted); overflow-wrap: anywhere;
}
.sc-profile-card__info svg { width: 15px; height: 15px; flex: none; }

@media (max-width: 1180px) {
    .sc-account__cta { display: inline-flex; }
}

@media (max-width: 1100px) {
    .sc-account__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
    .sc-account { padding-top: 20px; }
    .sc-account__cta { width: 100%; }
    .sc-stat-grid { gap: 10px; }
    .sc-stat-card { column-gap: 10px; row-gap: 8px; padding: 14px 16px; }
    .sc-stat-card__icon { width: 38px; height: 38px; border-radius: 11px; }
    .sc-stat-card__icon svg { width: 20px; height: 20px; }
    .sc-steps__label { font-size: 10.5px; }
    .sc-parcel, .sc-panel__header, .sc-balance__row, .sc-notice { padding-left: 16px; padding-right: 16px; }
    .sc-dialog__header { padding: 16px 18px; }
    .sc-parcel {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "title" "steps" "meta" "actions";
    }
    .sc-parcel__actions { margin-top: 12px; }
    .sc-dialog__body { padding: 20px 18px; }
}
