/* Consumer account pages (login / register / profile / history) */

:root {
    --acct-navy: #1E2D4F;
    --acct-magenta: #F03167;
    --acct-ivory: #F7F5F2;
    --acct-powder: #AFC5D6;
    --acct-gold: #BF9855;
    --acct-graphite: #2B313B;
}

.account-page {
    max-width: 720px;
    margin: 0 auto 64px;
    padding: 8px 0 40px;
}

.account-page--wide {
    max-width: 960px;
}

.account-page--profile {
    max-width: none;
    width: 100%;
    margin: 0 0 72px;
    padding: 0;
}

/* ── Profile hero (aligned with doctors/hospitals pages) ── */

.account-hero-band {
    position: relative;
    margin: 8px 0 24px;
    padding: 40px 24px 44px;
    border-radius: 14px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(240, 49, 103, 0.12), transparent 42%),
        radial-gradient(circle at 8% 90%, rgba(191, 152, 85, 0.14), transparent 40%),
        linear-gradient(135deg, var(--acct-ivory) 0%, #f0ebe4 55%, #e8eef4 100%);
    box-shadow: inset 0 0 0 1px rgba(30, 45, 79, 0.06);
}

@media (min-width: 768px) {
    .account-hero-band {
        padding: 56px 44px 60px;
        border-radius: 18px;
    }
}

.account-hero-band__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
    opacity: 0.55;
}

.account-hero-band__glow--1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -30px;
    background: rgba(232, 183, 196, 0.5);
}

.account-hero-band__glow--2 {
    width: 160px;
    height: 160px;
    bottom: -40px;
    left: -20px;
    background: rgba(175, 197, 214, 0.45);
}

.account-hero-band__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.account-hero-band__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: FontMedium, sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--acct-gold);
    margin-bottom: 12px;
}

.account-hero-band__title {
    font-family: FontBold, sans-serif;
    font-size: clamp(30px, 4.5vw, 42px);
    color: var(--acct-navy);
    line-height: 1.15;
    margin: 0 0 10px;
}

.account-hero-band__subtitle {
    font-family: FontNormal, sans-serif;
    font-size: 15px;
    color: var(--acct-graphite);
    opacity: 0.85;
    margin: 0;
    max-width: 46ch;
    line-height: 1.55;
}

/* ── Identity strip ── */

.account-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(30, 45, 79, 0.08);
    box-shadow: 0 10px 28px rgba(30, 45, 79, 0.04);
}

.account-identity__main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.account-identity__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.account-identity__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: FontBold, sans-serif;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--acct-navy), var(--acct-magenta));
}

.account-identity__avatar--img {
    object-fit: cover;
    padding: 0;
}

.account-identity__name {
    font-family: FontBold, sans-serif;
    font-size: 17px;
    color: var(--acct-navy);
    margin: 0 0 4px;
}

.account-identity__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-family: FontNormal, sans-serif;
    font-size: 13px;
    color: var(--acct-graphite);
    opacity: 0.9;
}

.account-identity__meta i {
    margin-right: 4px;
    opacity: 0.65;
    color: var(--acct-navy);
}

.account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.account-tabs__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: FontMedium, sans-serif;
    font-size: 14px;
    color: var(--acct-navy);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 100px;
    border: 1px solid rgba(30, 45, 79, 0.12);
    background: #fff;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.account-tabs__link:hover {
    border-color: rgba(240, 49, 103, 0.35);
    color: var(--acct-magenta);
}

.account-tabs__link.is-active {
    background: var(--acct-navy);
    border-color: var(--acct-navy);
    color: #fff;
}

.completion-meter {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.completion-meter__bar {
    flex: 1;
    height: 6px;
    border-radius: 100px;
    background: rgba(30, 45, 79, 0.08);
    overflow: hidden;
}

.completion-meter__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--acct-gold), var(--acct-magenta));
    border-radius: 100px;
}

.completion-meter__label {
    font-family: FontMedium, sans-serif;
    font-size: 12px;
    color: var(--acct-navy);
}

.completion-hint {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(191, 152, 85, 0.12);
    color: var(--acct-graphite);
    font-family: FontNormal, sans-serif;
    font-size: 13px;
}

.completion-hint i {
    color: var(--acct-gold);
    margin-top: 2px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 992px) {
    .settings-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        align-items: start;
    }
}

.settings-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-card {
    background: #fff;
    border: 1px solid rgba(30, 45, 79, 0.08);
    border-radius: 18px;
    padding: 22px 22px 20px;
    box-shadow: 0 12px 32px rgba(30, 45, 79, 0.05);
}

.settings-card__title {
    font-family: FontBold, sans-serif;
    font-size: 18px;
    color: var(--acct-navy);
    margin: 0 0 16px;
}

.settings-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-family: FontNormal, sans-serif;
    font-size: 12px;
    color: var(--acct-graphite);
    opacity: 0.85;
    margin: 4px 0 8px;
}

.account-form select {
    font-family: FontNormal, sans-serif;
    font-size: 15px;
    color: var(--acct-graphite);
    background: #fff;
    border: 1px solid rgba(30, 45, 79, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
}

.account-form input:disabled {
    background: rgba(30, 45, 79, 0.04);
    color: var(--acct-graphite);
    opacity: 0.85;
}

.account-form__actions--row {
    flex-direction: row;
    flex-wrap: wrap;
}

.photo-preview {
    margin-bottom: 14px;
}

.photo-preview img,
.photo-preview__empty {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

.photo-preview__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: FontBold, sans-serif;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--acct-navy), var(--acct-magenta));
}

.account-form {
    max-width: none;
}

.account-identity__name {
    font-family: FontBold, sans-serif;
    font-size: 17px;
    color: var(--acct-navy);
    margin: 0 0 4px;
}

.account-identity__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-family: FontNormal, sans-serif;
    font-size: 13px;
    color: var(--acct-graphite);
    opacity: 0.9;
}

.account-identity__meta i {
    margin-right: 4px;
    opacity: 0.65;
    color: var(--acct-navy);
}

.account-panel {
    background: var(--acct-ivory);
    border-radius: 18px;
    padding: 36px 28px;
    box-shadow:
        0 16px 40px rgba(30, 45, 79, 0.06),
        inset 0 0 0 1px rgba(30, 45, 79, 0.05);
}

/* ── History block ── */

.history-block {
    margin-top: 4px;
}

.history-block__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.history-block__eyebrow {
    display: block;
    font-family: FontMedium, sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--acct-gold);
    margin-bottom: 6px;
}

.history-block__title {
    font-family: FontBold, sans-serif;
    font-size: clamp(22px, 3vw, 28px);
    color: var(--acct-navy);
    margin: 0;
}

.history-block__count {
    font-family: FontMedium, sans-serif;
    font-size: 13px;
    color: var(--acct-graphite);
    opacity: 0.75;
    margin: 0;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(30, 45, 79, 0.05);
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

.history-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #fff;
    border-radius: 18px;
    padding: 22px 22px 20px;
    border: 1px solid rgba(30, 45, 79, 0.08);
    box-shadow: 0 12px 32px rgba(30, 45, 79, 0.05);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.history-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--acct-gold), var(--acct-magenta));
}

.history-card:hover {
    transform: translateY(-3px);
    border-color: rgba(240, 49, 103, 0.18);
    box-shadow: 0 18px 40px rgba(30, 45, 79, 0.1);
}

.history-card__top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.history-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(175, 197, 214, 0.35);
    color: var(--acct-navy);
    font-size: 18px;
}

.history-card__heading {
    min-width: 0;
}

.history-card__name {
    font-family: FontBold, sans-serif;
    font-size: 18px;
    color: var(--acct-navy);
    margin: 0 0 6px;
    line-height: 1.3;
}

.history-card__activity {
    font-family: FontNormal, sans-serif;
    font-size: 12px;
    color: var(--acct-graphite);
    opacity: 0.8;
    margin: 0;
}

.history-card__activity i {
    margin-right: 4px;
}

.history-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.history-stat {
    background: var(--acct-ivory);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-stat__value {
    font-family: FontBold, sans-serif;
    font-size: 22px;
    color: var(--acct-navy);
    line-height: 1.1;
}

.history-stat__label {
    font-family: FontMedium, sans-serif;
    font-size: 12px;
    color: var(--acct-graphite);
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.history-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.history-card__actions .account-btn {
    font-size: 14px;
    padding: 11px 18px;
}

.account-hero {
    margin-bottom: 28px;
}

.account-hero__eyebrow {
    display: inline-block;
    font-family: FontMedium, sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--acct-gold);
    margin-bottom: 8px;
}

.account-hero__title {
    font-family: FontBold, sans-serif;
    font-size: clamp(28px, 4vw, 36px);
    color: var(--acct-navy);
    line-height: 1.2;
    margin: 0 0 8px;
}

.account-hero__subtitle {
    font-family: FontNormal, sans-serif;
    font-size: 15px;
    color: var(--acct-graphite);
    opacity: 0.85;
    margin: 0;
    max-width: 42ch;
}

.account-card {
    background: var(--acct-ivory);
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow:
        0 16px 40px rgba(30, 45, 79, 0.08),
        0 0 0 1px rgba(191, 152, 85, 0.12);
    position: relative;
    overflow: hidden;
}

.account-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--acct-gold), var(--acct-magenta));
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-form__field label {
    font-family: FontMedium, sans-serif;
    font-size: 13px;
    color: var(--acct-navy);
}

.account-form__field input {
    font-family: FontNormal, sans-serif;
    font-size: 15px;
    color: var(--acct-graphite);
    background: #fff;
    border: 1px solid rgba(30, 45, 79, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.account-form__field input:focus {
    border-color: var(--acct-magenta);
    box-shadow: 0 0 0 3px rgba(240, 49, 103, 0.12);
}

.account-form__error,
.account-form__nonfield {
    font-family: FontNormal, sans-serif;
    font-size: 13px;
    color: var(--acct-magenta);
    margin: 0;
}

.account-form__hint {
    font-family: FontNormal, sans-serif;
    font-size: 12px;
    color: var(--acct-graphite);
    opacity: 0.7;
    margin: 0;
}

.account-form__nonfield {
    background: rgba(240, 49, 103, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
}

.account-form__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: FontMedium, sans-serif;
    font-size: 15px;
    border: none;
    border-radius: 100px;
    padding: 13px 22px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.account-btn--primary {
    background: var(--acct-navy);
    color: #fff;
}

.account-btn--primary:hover {
    background: var(--acct-magenta);
    color: #fff;
}

.account-btn--ghost {
    background: transparent;
    color: var(--acct-navy);
    border: 1px solid rgba(30, 45, 79, 0.2);
}

.account-btn--ghost:hover {
    border-color: var(--acct-magenta);
    color: var(--acct-magenta);
}

.account-btn--disabled,
.account-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.account-switch {
    text-align: center;
    font-family: FontNormal, sans-serif;
    font-size: 14px;
    color: var(--acct-graphite);
    margin: 18px 0 0;
}

.account-switch a {
    color: var(--acct-magenta);
    font-family: FontMedium, sans-serif;
    text-decoration: none;
}

.account-switch a:hover {
    text-decoration: underline;
}

.account-state {
    text-align: center;
    padding: 28px 16px;
}

.account-state__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(191, 152, 85, 0.15);
    color: var(--acct-gold);
    font-size: 22px;
}

.account-state__icon--empty {
    background: rgba(175, 197, 214, 0.35);
    color: var(--acct-navy);
}

.account-state__icon--error {
    background: rgba(240, 49, 103, 0.12);
    color: var(--acct-magenta);
}

.account-state__title {
    font-family: FontBold, sans-serif;
    font-size: 20px;
    color: var(--acct-navy);
    margin: 0 0 8px;
}

.account-state__text {
    font-family: FontNormal, sans-serif;
    font-size: 14px;
    color: var(--acct-graphite);
    opacity: 0.85;
    margin: 0 auto;
    max-width: 40ch;
}

.account-user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 20px;
    font-family: FontNormal, sans-serif;
    font-size: 14px;
    color: var(--acct-graphite);
}

.account-user-meta strong {
    font-family: FontMedium, sans-serif;
    color: var(--acct-navy);
}

.account-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: FontMedium, sans-serif;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 100px;
}

.account-badge--pending {
    background: rgba(191, 152, 85, 0.18);
    color: #8a6a2e;
}

.account-badge--ok {
    background: rgba(30, 45, 79, 0.08);
    color: var(--acct-navy);
}

.clinic-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.clinic-card {
    background: #fff;
    border: 1px solid rgba(30, 45, 79, 0.1);
    border-radius: 14px;
    padding: 18px 18px 16px;
}

.clinic-card__name {
    font-family: FontBold, sans-serif;
    font-size: 17px;
    color: var(--acct-navy);
    margin: 0 0 6px;
}

.clinic-card__meta {
    font-family: FontNormal, sans-serif;
    font-size: 13px;
    color: var(--acct-graphite);
    opacity: 0.85;
    margin: 0 0 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.clinic-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.history-section {
    margin-top: 28px;
}

.history-section__title {
    font-family: FontBold, sans-serif;
    font-size: 18px;
    color: var(--acct-navy);
    margin: 0 0 12px;
}

.history-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(30, 45, 79, 0.1);
    background: #fff;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-family: FontNormal, sans-serif;
    font-size: 13px;
    color: var(--acct-graphite);
}

.history-table th {
    text-align: left;
    font-family: FontMedium, sans-serif;
    color: var(--acct-navy);
    background: rgba(30, 45, 79, 0.04);
    padding: 10px 12px;
    white-space: nowrap;
}

.history-table td {
    padding: 10px 12px;
    border-top: 1px solid rgba(30, 45, 79, 0.06);
    vertical-align: top;
}

.account-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: FontMedium, sans-serif;
    font-size: 13px;
    color: var(--acct-navy);
    text-decoration: none;
    margin-bottom: 16px;
}

.account-back:hover {
    color: var(--acct-magenta);
}

.account-hero-band__actions {
    margin-top: 18px;
}

.detail-section {
    margin-bottom: 36px;
}

/* Side-by-side Randevular / İşlemler panels */
.history-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 24px;
}

@media (min-width: 992px) {
    .history-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        min-height: 520px;
    }
}

.history-column {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid rgba(30, 45, 79, 0.08);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(30, 45, 79, 0.05);
    overflow: hidden;
}

.history-column__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(30, 45, 79, 0.08);
    background:
        linear-gradient(180deg, rgba(247, 245, 242, 0.95), rgba(255, 255, 255, 0.9));
    flex-shrink: 0;
}

.history-column__head .history-block__title {
    font-size: clamp(20px, 2.4vw, 24px);
}

.history-column__body {
    flex: 1;
    min-height: 280px;
    max-height: 62vh;
    overflow-y: auto;
    padding: 14px 14px 16px;
    scrollbar-gutter: stable;
}

@media (min-width: 992px) {
    .history-column__body {
        max-height: min(68vh, 720px);
        min-height: 420px;
    }
}

.history-column__body::-webkit-scrollbar {
    width: 8px;
}

.history-column__body::-webkit-scrollbar-thumb {
    background: rgba(30, 45, 79, 0.18);
    border-radius: 100px;
}

.history-column__empty {
    text-align: center;
    padding: 36px 16px;
}

.history-column__empty .account-state__icon {
    margin: 0 auto 14px;
}

.history-column__empty .account-state__title {
    font-size: 17px;
}

.history-column__empty .account-state__text {
    font-size: 13px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(30, 45, 79, 0.08);
    box-shadow: 0 10px 28px rgba(30, 45, 79, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.timeline-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--acct-gold), var(--acct-magenta));
}

.timeline-card:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 49, 103, 0.16);
    box-shadow: 0 16px 36px rgba(30, 45, 79, 0.08);
}

@media (min-width: 768px) {
    .timeline-card {
        grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
        align-items: start;
        gap: 20px;
        padding: 20px 24px;
    }

    /* Inside side-by-side columns, keep stacked compact cards */
    .timeline-card--compact {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 16px 14px;
    }
}

.timeline-card__when {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.timeline-card__date {
    font-family: FontMedium, sans-serif;
    font-size: 14px;
    color: var(--acct-navy);
    line-height: 1.4;
}

.timeline-card__body {
    min-width: 0;
}

.timeline-card__title {
    font-family: FontBold, sans-serif;
    font-size: 16px;
    color: var(--acct-navy);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-card__title i {
    color: var(--acct-magenta);
    opacity: 0.85;
    font-size: 14px;
}

.timeline-card__meta {
    font-family: FontNormal, sans-serif;
    font-size: 13px;
    color: var(--acct-graphite);
    opacity: 0.85;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-card__meta i {
    opacity: 0.55;
    color: var(--acct-navy);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    font-family: FontMedium, sans-serif;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 100px;
    background: rgba(30, 45, 79, 0.08);
    color: var(--acct-navy);
}

.status-pill--completed {
    background: rgba(46, 125, 90, 0.12);
    color: #1f6b4a;
}

.status-pill--confirmed,
.status-pill--scheduled {
    background: rgba(175, 197, 214, 0.45);
    color: var(--acct-navy);
}

.status-pill--pending {
    background: rgba(191, 152, 85, 0.2);
    color: #8a6a2e;
}

.status-pill--cancelled,
.status-pill--canceled,
.status-pill--no_show {
    background: rgba(240, 49, 103, 0.12);
    color: var(--acct-magenta);
}

.status-pill--type {
    background: rgba(30, 45, 79, 0.06);
    color: var(--acct-graphite);
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
}

.status-pill--postponed {
    background: rgba(191, 152, 85, 0.2);
    color: #8a6a2e;
}

.status-pill--paid {
    background: rgba(46, 125, 90, 0.12);
    color: #1f6b4a;
}

.timeline-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: FontMedium, sans-serif;
    font-size: 11px;
    color: var(--acct-graphite);
    background: rgba(30, 45, 79, 0.05);
    border-radius: 100px;
    padding: 4px 9px;
}

.meta-chip--online {
    background: rgba(175, 197, 214, 0.4);
    color: var(--acct-navy);
}

.meta-chip--manual {
    background: rgba(191, 152, 85, 0.16);
    color: #8a6a2e;
}

.timeline-card__doctor {
    margin-bottom: 4px;
}

.timeline-card__subtitle {
    font-family: FontNormal, sans-serif;
    font-size: 13px;
    color: var(--acct-graphite);
    opacity: 0.8;
    margin: -2px 0 8px 22px;
}

.timeline-card__inline-muted {
    opacity: 0.7;
    font-family: FontNormal, sans-serif;
}

.service-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.service-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    background: var(--acct-ivory);
    border: 1px solid rgba(30, 45, 79, 0.08);
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 0;
}

.service-chip__name {
    font-family: FontMedium, sans-serif;
    font-size: 13px;
    color: var(--acct-navy);
}

.service-chip__cat {
    font-family: FontNormal, sans-serif;
    font-size: 11px;
    color: var(--acct-graphite);
    opacity: 0.75;
}

.tx-items {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tx-items li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    padding: 8px 10px;
    background: var(--acct-ivory);
    border-radius: 10px;
}

.tx-items__name {
    font-family: FontMedium, sans-serif;
    color: var(--acct-navy);
}

.tx-items__qty {
    font-family: FontNormal, sans-serif;
    color: var(--acct-graphite);
    opacity: 0.85;
    white-space: nowrap;
}

.tx-payment {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(30, 45, 79, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tx-payment__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-family: FontNormal, sans-serif;
    font-size: 13px;
    color: var(--acct-graphite);
}

.tx-payment__row strong {
    font-family: FontBold, sans-serif;
    color: var(--acct-navy);
}

.tx-payment__row--due strong {
    color: var(--acct-magenta);
}

@media (min-width: 900px) {
    .timeline-card--transaction:not(.timeline-card--compact) {
        grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    }
}

/* —— Clinic extras: balance / receipts / photos —— */
.clinic-extras {
    margin: 0 0 28px;
}

.clinic-extras__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 900px) {
    .clinic-extras__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        align-items: start;
    }
}

.clinic-extras__soft-error {
    margin: 0;
    font-family: FontNormal, sans-serif;
    font-size: 14px;
    color: var(--acct-magenta);
}

.balance-card,
.receipts-card,
.photos-section {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(30, 45, 79, 0.08);
    border-radius: 18px;
    padding: 22px 22px 20px;
    box-shadow: 0 10px 28px rgba(30, 45, 79, 0.05);
}

.balance-card__head,
.receipts-card__head,
.photos-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.balance-card__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 520px) {
    .balance-card__metrics {
        grid-template-columns: 1fr;
    }
}

.balance-metric {
    padding: 14px 12px;
    border-radius: 12px;
    background: rgba(30, 45, 79, 0.04);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.balance-metric--due {
    background: rgba(196, 58, 120, 0.08);
}

.balance-metric__label {
    font-family: FontNormal, sans-serif;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--acct-graphite);
    opacity: 0.85;
}

.balance-metric__value {
    font-family: FontBold, sans-serif;
    font-size: 17px;
    color: var(--acct-navy);
    word-break: break-word;
}

.balance-metric--due .balance-metric__value {
    color: var(--acct-magenta);
}

.balance-card__meta {
    margin: 14px 0 0;
    font-family: FontNormal, sans-serif;
    font-size: 13px;
    color: var(--acct-graphite);
}

.status-pill--due {
    background: rgba(196, 58, 120, 0.12);
    color: var(--acct-magenta);
}

.receipt-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow: auto;
}

.receipt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(30, 45, 79, 0.035);
}

.receipt-row__number {
    margin: 0 0 4px;
    font-family: FontBold, sans-serif;
    font-size: 14px;
    color: var(--acct-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.receipt-row__number i {
    opacity: 0.65;
}

.receipt-row__meta {
    margin: 0;
    font-family: FontNormal, sans-serif;
    font-size: 12px;
    color: var(--acct-graphite);
}

.receipt-row__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.receipt-row__amount {
    font-family: FontBold, sans-serif;
    font-size: 14px;
    color: var(--acct-navy);
}

.receipt-row__pdf-soon {
    font-family: FontNormal, sans-serif;
    font-size: 11px;
    color: var(--acct-graphite);
    opacity: 0.8;
    text-align: right;
    max-width: 140px;
}

.account-btn--sm {
    padding: 6px 12px;
    font-size: 12px;
}

.history-column__empty--inline {
    padding: 8px 0 4px;
}

.photos-section {
    margin-bottom: 28px;
}

.photo-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.photo-filter {
    appearance: none;
    border: 1px solid rgba(30, 45, 79, 0.12);
    background: rgba(255, 255, 255, 0.7);
    color: var(--acct-graphite);
    font-family: FontNormal, sans-serif;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.photo-filter:hover {
    border-color: rgba(30, 45, 79, 0.28);
}

.photo-filter.is-active {
    background: var(--acct-navy);
    border-color: var(--acct-navy);
    color: #fff;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.photo-tile {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    background: rgba(30, 45, 79, 0.06);
}

.photo-tile.is-hidden,
.photo-gallery__empty.is-hidden {
    display: none !important;
}

.photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-tile__badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-family: FontNormal, sans-serif;
    font-size: 11px;
}

.photo-gallery__empty {
    margin: 8px 0 0;
    font-family: FontNormal, sans-serif;
    font-size: 14px;
    color: var(--acct-graphite);
}

.photo-lightbox[hidden] {
    display: none !important;
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.photo-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(12, 18, 34, 0.72);
    cursor: pointer;
}

.photo-lightbox__panel {
    position: relative;
    z-index: 1;
    max-width: min(920px, 100%);
    max-height: min(88vh, 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo-lightbox__panel img {
    max-width: 100%;
    max-height: calc(88vh - 48px);
    object-fit: contain;
    border-radius: 12px;
    background: #0b1220;
}

.photo-lightbox__caption {
    margin: 0;
    text-align: center;
    color: #fff;
    font-family: FontNormal, sans-serif;
    font-size: 14px;
}

.photo-lightbox__close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--acct-navy);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .account-card {
        padding: 24px 18px;
    }

    .receipt-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .receipt-row__aside {
        align-items: flex-start;
        width: 100%;
    }
}
