/* =====================================================================
   profile.css — Profile & Support
   ===================================================================== */

/* ---------------------------------------------------------- Base utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    min-height: 44px;
    padding: var(--space-12) var(--space-20);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: var(--brand-contrast);
    font: inherit;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}
.btn--primary { background: var(--brand); color: var(--brand-contrast); }
.btn--danger { background: var(--error-100); color: var(--error-text); border-color: transparent; }
.btn--danger:hover { background: var(--error-500); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-20);
    box-shadow: var(--shadow-1);
    padding: var(--space-20);
}

.skeleton {
    display: block;
    border-radius: var(--radius-8);
    background: linear-gradient(90deg, var(--surface-3) 25%, color-mix(in srgb, var(--surface-3) 60%, #fff) 37%, var(--surface-3) 63%);
    background-size: 400% 100%;
    animation: ant-shimmer 1.4s ease infinite;
}
@keyframes ant-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.field { display: grid; gap: var(--space-8); }
.field__label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.field__input {
    width: 100%;
    min-height: 48px;
    padding: var(--space-12) var(--space-16);
    border: 1px solid var(--border);
    border-radius: var(--radius-14);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}
.field__input:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus-ring); }
.field__input.is-invalid { border-color: var(--error-500); }
.field__error { min-height: 1em; font-size: 0.8125rem; color: var(--error-text); }
.field__hint { font-size: 0.8125rem; color: var(--text-muted); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}
.badge--verified { background: var(--success-100); color: var(--success-text); }

/* ------------------------------------------------------------------- Page */
.profile-wrap { max-width: 640px; margin: 0 auto; padding: var(--space-20) var(--space-16) var(--space-40); display: grid; gap: var(--space-16); }
.profile-head__title { margin: 0; font-size: 1.75rem; }

/* -------------------------------------------------------------- Identity */
.profile-identity { display: grid; grid-template-columns: auto 1fr; gap: var(--space-12) var(--space-20); align-items: start; }
.profile-avatar {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-pill);
    background: var(--gradient-card-accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}
.profile-form { display: grid; gap: var(--space-16); grid-column: 1 / -1; }
.profile-mobile { display: flex; align-items: center; gap: var(--space-12); min-height: 44px; }
.profile-mobile__value { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; white-space: nowrap; }
.profile-mobile .badge { margin-left: auto; flex: 0 0 auto; }
.profile-form__actions { display: flex; justify-content: flex-end; }

/* ------------------------------------------------------------------ Cards */
.profile-card { display: grid; gap: var(--space-12); }
.profile-card__head { display: flex; align-items: center; justify-content: space-between; }
.profile-card__title { margin: 0; font-size: 1.0625rem; }

.lang-switch { display: inline-flex; gap: var(--space-4); padding: var(--space-4); background: var(--surface-3); border-radius: var(--radius-pill); }
.lang-switch__opt {
    min-height: 40px;
    padding: var(--space-8) var(--space-20);
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.lang-switch__opt.is-active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-1); }

.theme-slot { min-height: 44px; }

/* --------------------------------------------------------------- Support */
.profile-support { display: grid; }
.profile-support__row {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    min-height: 48px;
    padding: var(--space-12) 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
}
.profile-support__row:last-child { border-bottom: 0; }
.profile-support__row:hover { text-decoration: none; }
.profile-support__row i:first-child { flex: 0 0 22px; width: 22px; color: var(--brand); text-align: center; }
.profile-support__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.3; }
.profile-support__value { color: var(--text-muted); font-size: 0.8125rem; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.profile-support__chev { flex: 0 0 auto; margin-left: auto; color: var(--text-muted); font-size: 0.8rem; }

.profile-logout { width: 100%; }

@media (min-width: 640px) {
    .profile-identity { grid-template-columns: auto 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton { animation: none; }
}
