/* Customer account pages: applications, notifications, settings, check status */
.ac-hero { padding-top: 48px; }
.ac-hero .ft-crumbs, .ac-hero .ft-crumbs a { color: rgba(255, 255, 255, .7); }
.ac-hero .ft-crumbs a:hover, .ac-hero .ft-crumbs [aria-current] { color: #fff; }
.ac-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.ac-hero__row .ft-btn { flex: none; }

.ac-stats { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 24px 0 0; }
.ac-stats li { min-width: 120px; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.ac-stats strong { display: block; font-family: Poppins, sans-serif; font-size: 1.5rem; line-height: 1.2; color: #fff; }
.ac-stats span { font-size: .8rem; color: rgba(255, 255, 255, .7); }

.ac-body { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; }
.ac-narrow > * { width: 100%; max-width: 880px; }

/* Tabs */
.ac-tabs { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--ft-line); box-shadow: var(--ft-shadow); }
.ac-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ft-muted); font-weight: 600; transition: background-color .2s, color .2s; }
.ac-tab:hover { color: var(--ft-navy); }
.ac-tab.active { background: var(--ft-navy); color: #fff; }
.ac-tab__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ft-tint); color: var(--ft-navy); font-size: .75rem; }
.ac-tab.active .ac-tab__count { background: rgba(255, 255, 255, .18); color: #fff; }
.tab-content > .tab-pane > .ft-card + .ft-card { margin-top: 20px; }

.ac-count { margin-left: 4px; padding: 2px 10px; border-radius: 999px; background: var(--ft-tint); color: var(--ft-muted); font-size: .8rem; font-weight: 600; }

/* Application rows */
.ac-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ac-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--ft-line); border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.ac-item:hover { border-color: #d3dbe6; box-shadow: 0 6px 18px -10px rgba(16, 36, 62, .25); }
.ac-item__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ft-gold-soft); color: var(--ft-gold); font-size: 1.2rem; }
.ac-item__icon--done { background: #e8f1fb; color: var(--ft-navy); }
.ac-item__icon--muted { background: var(--ft-tint); color: var(--ft-muted); }
.ac-item__main { min-width: 0; }
.ac-item__main strong { display: block; font-size: 1.02rem; color: var(--ft-ink); }
.ac-item__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; font-size: .84rem; color: var(--ft-muted); }
.ac-item__meta i { margin-right: 3px; }
.ac-item__note { display: block; margin-top: 4px; font-size: .84rem; color: var(--ft-muted); font-style: italic; }
.ac-id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; color: var(--ft-ink); }
.ac-item__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ac-item__actions:empty { display: none; }

.ac-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.ac-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ac-status--draft { background: var(--ft-gold-soft); color: #8a6a00; }
.ac-status--ok { background: #e7f6ec; color: #18794e; }
.ac-status--info { background: #e8f1fb; color: var(--ft-navy); }
.ac-status--warn { background: #fff4e0; color: #b45309; }
.ac-status--bad { background: #fdecec; color: #b42318; }
.ac-status--muted { background: var(--ft-tint); color: var(--ft-muted); }

.ac-icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ft-line); border-radius: 50%; background: #fff; color: var(--ft-muted); transition: background-color .2s, color .2s, border-color .2s; }
.ac-icon-btn:hover { background: var(--ft-tint); color: var(--ft-navy); border-color: #d3dbe6; }
.ac-icon-btn--danger:hover { background: #fdecec; color: #b42318; border-color: #f6caca; }

.ac-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 16px; text-align: center; color: var(--ft-muted); }
.ac-empty i { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--ft-tint); color: var(--ft-navy); font-size: 1.5rem; }
.ac-empty p { margin: 0; max-width: 420px; }
.ac-empty--lg { padding: 56px 20px; }

.ac-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.ac-pages a { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--ft-line); background: #fff; color: var(--ft-ink); font-weight: 600; }
.ac-pages a:hover { border-color: var(--ft-navy); color: var(--ft-navy); }
.ac-pages a.is-active { background: var(--ft-navy); border-color: var(--ft-navy); color: #fff; }

/* Notifications */
.ac-notes { list-style: none; padding: 0; margin: 0; }
.ac-note { display: flex; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--ft-line); transition: background-color .2s; }
.ac-note:first-child { border-radius: var(--ft-radius) var(--ft-radius) 0 0; }
.ac-note.is-unread { background: #f7f9fd; }
.ac-note__icon { flex: none; position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ft-tint); color: var(--ft-muted); }
.ac-note.is-unread .ac-note__icon { background: var(--ft-gold-soft); color: var(--ft-gold); }
.ac-note.is-unread .ac-note__icon::after { content: ""; position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%; background: #d92d20; border: 2px solid #fff; }
.ac-note__body { flex: 1; min-width: 0; }
.ac-note__text { margin: 0 0 4px; color: var(--ft-ink); line-height: 1.55; overflow-wrap: anywhere; }
.ac-note.is-unread .ac-note__text { font-weight: 600; }
.ac-note__time { font-size: .82rem; color: var(--ft-muted); }
.ac-note__new { color: #b42318; font-weight: 600; }
.ac-note__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ac-note__actions .ac-icon-btn { margin-left: auto; }
.ac-notes__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; font-size: .88rem; }
.ac-notes__footer .ac-pages { margin: 0; }
.ac-limit { display: inline-flex; align-items: center; gap: 8px; color: var(--ft-muted); margin: 0; }
.ac-limit select { padding: 6px 30px 6px 12px; border: 1px solid var(--ft-line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%235d6877' d='M8 11 3 6h10z'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; color: var(--ft-ink); cursor: pointer; }

/* Forms (settings, check status) */
.ac-field { margin-bottom: 16px; }
.ac .form-label { font-size: .9rem; font-weight: 600; color: var(--ft-ink); margin-bottom: 6px; }
.ac .form-control { min-height: 48px; padding: 10px 14px; border: 1px solid #d5dce6; border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.ac .form-control:focus { border-color: var(--ft-navy); box-shadow: 0 0 0 4px rgba(20, 56, 92, .12); }

.ac-setting { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding: 28px; }
.ac-setting__intro .ft-section-title { margin-bottom: 8px; }
.ac-setting__intro p { margin: 0; font-size: .92rem; }
.ac-setting__actions { display: flex; justify-content: flex-start; align-items: center; }
.ac-setting--danger { border-color: #f6d4d4; }
.ac-setting--danger .ft-section-title i { background: #fdecec; color: #b42318; }
.ac-btn-danger { background: #fff; color: #b42318; border-color: #f1b9b9; }
.ac-btn-danger:hover { background: #b42318; color: #fff; border-color: #b42318; }

.ac-status-check__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ac-status-check__hint { margin: 14px 0 0; font-size: .86rem; }
.ac-result { display: flex; align-items: flex-start; gap: 14px; margin-top: 20px; padding: 18px; border-radius: 16px; background: #eef4fb; border: 1px solid #d6e3f2; animation: ac-in .3s ease-out; }
.ac-result[hidden] { display: none; }
.ac-result--error { background: #fdf1f0; border-color: #f6d4d4; }
.ac-result__icon { flex: none; font-size: 1.6rem; color: var(--ft-navy); line-height: 1; }
.ac-result--error .ac-result__icon { color: #b42318; }
.ac-result__body { flex: 1; min-width: 0; }
.ac-result__body h2 { font-size: 1.05rem; font-weight: 700 !important; margin: 0 0 4px; }
.ac-result__body p { margin: 0; color: var(--ft-ink); }
@keyframes ac-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ac-guide { color: var(--ft-muted); line-height: 1.7; }
.ac-guide h2 { font-size: 1.2rem; font-weight: 700 !important; color: var(--ft-ink); margin: 0 0 12px; }
.ac-guide h3 { font-size: 1rem; font-weight: 700 !important; color: var(--ft-ink); margin: 22px 0 8px; }
.ac-guide a { color: var(--ft-navy); font-weight: 600; }
.ac-guide ul { padding-left: 20px; }
.ac-guide li { margin-bottom: 8px; }

@media (max-width: 767.98px) {
  .ac-item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ac-item__actions { grid-column: 1 / -1; justify-content: stretch; }
  .ac-item__actions .ft-btn { flex: 1; }
  .ac-setting { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .ac-status-check__fields { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .ac-stats li { flex: 1; min-width: 0; padding: 10px 12px; }
  .ac-stats strong { font-size: 1.25rem; }
  .ac-tabs { align-self: stretch; }
  .ac-tab { flex: 1; justify-content: center; padding: 9px 10px; }
  .ac-item { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; }
  .ac-item .ac-status { grid-column: 2; justify-self: start; }
  .ac-note { padding: 16px; }
  .ac-notes__footer { flex-direction: column; align-items: stretch; text-align: center; }
  .ac-limit { justify-content: center; }
}
