/* Lawrence AI - Account Page Styles
   Loaded by: account.html only
   Depends on: variables.css, base.css, landing.css (navbar/footer/buttons/pricing-card) */

/* ==========================================
   Page title support
   ========================================== */
/* core.js checks window.pageTitles on language switch */


/* ==========================================
   LOGIN VIEW
   ========================================== */

.account-login-view {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 40px;
    background: var(--surface-base);
}

.account-login-card {
    width: 100%;
    max-width: 420px;
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    background: var(--surface-container);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-elevated);
}

.account-login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.account-login-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

/* The page title is the wordmark image, so the <h1> carrying it for the document
   outline and for screen readers is hidden visually but kept in the a11y tree. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.account-login-subtitle {
    font-family: 'Newsreader', serif;
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

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

.account-login-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-login-form label span {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.account-login-form input {
    padding: 12px 14px;
    background: var(--surface-container-highest);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Newsreader', serif;
    font-size: 16px;
    transition: border-color 0.2s var(--easing);
    outline: none;
}

.account-login-form input:focus {
    border-bottom-color: var(--tertiary);
}

.account-login-form input::placeholder {
    color: var(--text-tertiary);
}

.account-login-btn {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
}

.account-login-error {
    background: rgba(147, 0, 10, 0.2);
    border: 1px solid rgba(255, 180, 171, 0.3);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--danger-red);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.account-login-footer {
    text-align: center;
    margin-top: 24px;
}

.account-login-footer a {
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.account-login-footer a:hover {
    color: var(--brand-light);
}


/* ==========================================
   FORGOT PASSWORD
   ========================================== */

.account-forgot-link {
    display: block;
    text-align: right;
    margin-top: -12px;
    margin-bottom: 4px;
}

.account-forgot-link a {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
}

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

.account-forgot-hint {
    color: #888;
    font-size: 13px;
    margin: 0 0 16px;
    line-height: 1.4;
}

.account-login-success {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}


/* ==========================================
   DASHBOARD LAYOUT
   ========================================== */

.account-dashboard {
    display: flex;
    height: 100vh;
    padding-top: 64px; /* navbar height */
    background: var(--surface-base);
    overflow: hidden;
}

.account-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--surface-container-low);
    border-right: 1px solid var(--border-default);
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.account-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border-default);
    margin-bottom: 16px;
}

.account-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
}

.account-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.account-user-name {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-user-tier {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--brand-light);
    font-weight: 500;
}

.account-user-tier.tier-individual { color: var(--text-secondary); }
.account-user-tier.tier-professional { color: #a78bfa; }
.account-user-tier.tier-corporate { color: #d4a017; }


/* ==========================================
   SIDEBAR NAVIGATION
   ========================================== */

.account-nav {
    flex: 1;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s var(--easing);
    width: 100%;
    text-align: left;
}

.account-nav-item:hover {
    background: var(--surface-container);
    color: var(--text-primary);
}

.account-nav-item.active {
    background: var(--surface-container);
    color: var(--brand-light);
}

.account-nav-item.active svg {
    stroke: var(--brand-light);
}

.account-nav-item svg {
    flex-shrink: 0;
}

.account-nav-separator {
    height: 1px;
    background: var(--border-default);
    margin: 6px 16px;
}

.account-sidebar-footer {
    padding: 16px 12px 0;
    border-top: 1px solid var(--border-default);
    margin-top: auto;
}

.account-nav-danger {
    color: var(--danger-red);
}

.account-nav-danger:hover {
    background: rgba(147, 0, 10, 0.15);
    color: var(--danger-red);
}

.account-sidebar-legal {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px 0;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--text-tertiary);
}

.account-sidebar-legal a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
}

.account-sidebar-legal a:hover {
    color: var(--brand-light);
}


/* ==========================================
   CONTENT AREA
   ========================================== */

.account-content {
    flex: 1;
    overflow-y: auto;
    height: calc(100vh - 64px);
}

.account-content-inner {
    max-width: 960px;
    padding: 40px 48px 60px;
}

.account-section {
    display: none;
}

.account-section.active {
    display: block;
    animation: accountFadeIn 0.25s var(--easing);
}

@keyframes accountFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.account-section-header {
    margin-bottom: 28px;
}

.account-section-header h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.account-section-header p {
    font-family: 'Newsreader', serif;
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}


/* ==========================================
   CARDS
   ========================================== */

.account-card {
    background: var(--surface-container);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}

.account-card h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px;
}

.account-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.account-card-header-row h3 {
    margin: 0;
}


/* ==========================================
   FORM ELEMENTS
   ========================================== */

.account-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.account-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.account-form-field span {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.account-form-field input,
.account-form-field textarea {
    padding: 10px 14px;
    background: var(--surface-container-highest);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Newsreader', serif;
    font-size: 15px;
    transition: border-color 0.2s var(--easing);
    outline: none;
}

.account-form-field input:focus {
    border-bottom-color: var(--tertiary);
}

.account-form-field input::placeholder {
    color: var(--text-tertiary);
}

.account-input-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.account-field-hint {
    font-size: 12px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--text-tertiary) !important;
    font-style: italic;
}

.account-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.account-save-feedback {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.account-save-feedback.success {
    color: var(--tertiary);
}

.account-save-feedback.error {
    color: var(--danger-red);
}

.account-save-feedback.warning {
    color: var(--warning-yellow);
}


/* ==========================================
   PROFILE DETAILS GRID
   ========================================== */

.account-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.account-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-detail-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.account-detail-value {
    font-family: 'Newsreader', serif;
    font-size: 15px;
    color: var(--text-primary);
}


/* ==========================================
   USAGE BAR
   ========================================== */

.account-usage-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-usage-tier {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-light);
}

/* Tier-colored usage tier name */
.account-usage-tier.tier-individual { color: var(--text-secondary); }
.account-usage-tier.tier-professional { color: #a78bfa; }
.account-usage-tier.tier-corporate { color: #d4a017; }

.account-usage-reset {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-secondary);
}

.account-current-plan.tier-professional .account-usage-reset { color: rgba(167, 139, 250, 0.7); }
.account-current-plan.tier-corporate .account-usage-reset { color: rgba(212, 160, 23, 0.7); }

.account-usage-bar-container {
    height: 10px;
    background: var(--surface-container-highest);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.account-current-plan.tier-professional .account-usage-bar-container { background: rgba(124, 58, 237, 0.15); }
.account-current-plan.tier-corporate .account-usage-bar-container { background: rgba(180, 130, 50, 0.15); }

.account-usage-bar {
    height: 100%;
    border-radius: var(--radius-pill);
    background: var(--gradient-brand);
    transition: width 0.8s var(--easing);
    min-width: 0;
}

/* Tier-colored usage bar */
.account-usage-bar.tier-individual { background: linear-gradient(135deg, #8b919f, #a0a6b4); }
.account-usage-bar.tier-professional { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.account-usage-bar.tier-corporate { background: linear-gradient(135deg, #b8860b, #d4a017); }

.account-usage-bar.warning {
    background: linear-gradient(135deg, #eab308 0%, #f59e0b 100%) !important;
}

.account-usage-bar.danger {
    background: linear-gradient(135deg, #93000a 0%, #ffb4ab 100%) !important;
}

.account-usage-details {
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Tier-colored usage details */
.account-current-plan.tier-professional .account-usage-details { color: rgba(167, 139, 250, 0.8); }
.account-current-plan.tier-corporate .account-usage-details { color: rgba(212, 160, 23, 0.8); }


/* ==========================================
   USAGE HISTORY TABLE
   ========================================== */

.account-usage-table {
    width: 100%;
    border-collapse: collapse;
}

.account-usage-table th {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-default);
}

.account-usage-table td {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-body);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-default);
}

.account-usage-table tr:last-child td {
    border-bottom: none;
}

.account-empty-state {
    font-family: 'Newsreader', serif;
    font-size: 14px;
    color: var(--text-tertiary);
    text-align: center;
    padding: 24px 0;
}


/* ==========================================
   PASSWORD REQUIREMENTS
   ========================================== */

.account-password-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 8px;
}

.account-password-requirements .req {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.account-password-requirements .req.met {
    color: var(--tertiary);
}

.account-password-requirements .req.met::before {
    content: '\2713 ';
}

.account-password-error {
    background: rgba(147, 0, 10, 0.2);
    border: 1px solid rgba(255, 180, 171, 0.3);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--danger-red);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-bottom: 16px;
}




/* ==========================================
   PAYWALL
   ========================================== */

.account-paywall {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(15, 19, 31, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.account-paywall-card {
    text-align: center;
    max-width: 420px;
}

.account-paywall-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 12px;
    background: var(--surface-container-high);
    color: var(--text-primary);
}

.account-paywall-card h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.account-paywall-card p {
    font-family: 'Newsreader', serif;
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 24px;
}

/* ==========================================
   TRIAL COUNTDOWN
   ========================================== */

.account-trial-countdown {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--tertiary);
    margin-top: 8px;
}

.account-trial-countdown.expiring {
    color: var(--warning-yellow);
}

.account-trial-countdown.expired {
    color: var(--danger-red);
}




/* ==========================================
   APPS CARDS
   ========================================== */

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

/* Base card (used by PDF and as base for Word) */
.account-app-card {
    padding: 24px;
    background: var(--surface-container);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s var(--easing), box-shadow 0.2s var(--easing);
}

.account-app-card:not(.account-app-card--expanded) {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

.account-app-card:not(.account-app-card--expanded):hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-card-hover);
}

/* Card header row (icon + info) */
.account-app-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.account-app-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-app-icon--word {
    background: rgba(43, 87, 154, 0.12);
    color: #4b8bf5;
}

.account-app-icon--pdf {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

.account-app-info {
    flex: 1;
    min-width: 0;
}

.account-app-info h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.account-app-info p {
    font-family: 'Newsreader', serif;
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.account-app-cta {
    flex-shrink: 0;
}

/* ---- Expanded card (Word add-in) ---- */

.account-app-card--expanded {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Platform badge */
.account-app-platform {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-tertiary);
    width: fit-content;
}

.account-app-platform:empty {
    display: none;
}

.account-app-platform-icon {
    font-size: 14px;
}

/* Steps */
.account-app-steps {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border-default);
}

.account-app-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.account-app-step b {
    color: var(--text-primary);
    font-weight: 600;
}

.account-app-step-num {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: rgba(58, 144, 255, 0.1);
    color: var(--brand-light);
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PDF step numbers (brand bronze applied under body.brand-navy) */
.account-app-step-num--pdf {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

/* PDF primary button — solid fill (no gradient); brand-navy remaps color */
.account-app-install-btn--pdf {
    background: #ea580c !important;
    border-color: #ea580c !important;
}

.account-app-install-btn--pdf:hover {
    background: #c2410c !important;
}

/* Actions row */
.account-app-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}

.account-app-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.account-app-install-btn svg {
    flex-shrink: 0;
}

.account-app-alt-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.15s;
}

.account-app-alt-link:hover {
    color: var(--brand-light);
}

.account-app-alt-link svg {
    flex-shrink: 0;
}

/* Already installed hint */
.account-app-hint {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-default);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-app-hint a {
    color: var(--brand-light);
    text-decoration: none;
    font-weight: 500;
}

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .account-app-card:not(.account-app-card--expanded) {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .account-app-cta {
        align-self: stretch;
        text-align: center;
    }

    .account-app-steps {
        flex-direction: column;
        gap: 12px;
    }

    .account-app-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .account-app-install-btn {
        justify-content: center;
    }

    .account-app-alt-link {
        justify-content: center;
    }
}


/* ==========================================
   BILLING — CURRENT PLAN CARD
   ========================================== */

.account-current-plan {
    position: relative;
    overflow: hidden;
    border-color: var(--border-default);
}

/* Tier-specific current plan card (no lateral accent bar — brand anti-pattern) */
.account-current-plan.tier-individual { border-color: rgba(139, 145, 159, 0.35); }

.account-current-plan.tier-professional { border-color: rgba(124, 58, 237, 0.35); background: rgba(124, 58, 237, 0.06); }

.account-current-plan.tier-corporate { border-color: rgba(212, 160, 23, 0.35); background: rgba(180, 130, 50, 0.08); }

.account-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.account-plan-header h3 {
    margin: 4px 0 2px;
}

.account-plan-badge {
    display: inline-block;
    margin-bottom: 0;
}

.account-plan-badge span {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(58, 144, 255, 0.15);
    color: var(--brand-light);
}

/* Tier-specific badge colors */
.account-current-plan.tier-individual .account-plan-badge span { background: rgba(139, 145, 159, 0.15); color: var(--text-secondary); }
.account-current-plan.tier-professional .account-plan-badge span { background: rgba(124, 58, 237, 0.12); color: #a78bfa; }
.account-current-plan.tier-corporate .account-plan-badge span { background: rgba(180, 130, 50, 0.15); color: #d4a017; }

.account-current-plan h3 {
    font-size: 22px;
    font-weight: 700;
}

/* Tier-colored plan name */
.account-current-plan.tier-individual h3 { color: var(--text-primary); }
.account-current-plan.tier-professional h3 { color: #a78bfa; }
.account-current-plan.tier-corporate h3 { color: #d4a017; }

.account-plan-desc {
    font-family: 'Newsreader', serif;
    font-size: 15px;
    color: var(--text-secondary);
    margin: 4px 0 0;
}


/* ==========================================
   BILLING — PRICING TOGGLE & GRID
   ========================================== */

.account-plans-section {
    margin-top: 28px;
}

.account-plans-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.account-plans-header h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.account-plans-header .pricing-toggle-pill {
    margin-bottom: 0;
}

/* Plan carousel (3D coverflow).
   The account content column is too narrow for three side-by-side cards, so the
   plans render as a coverflow: the active plan sits front-and-center at full
   scale while the other two peek behind it on each side, angled back in 3D.
   Arrows (or clicking a side card) rotate the selection. See initPlanCarousel
   in account-billing.js. */
.account-plans-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.account-pricing-grid.pricing-grid {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    /* Null out the landing 3-column grid's frame (bg tint + border + radius) so
       the cards float over the transparent page instead of on a grey tray. */
    background: none;
    border: none;
    border-radius: 0;
    perspective: 1600px;
    transition: height 0.45s cubic-bezier(0.25, 0.8, 0.35, 1);
}

/* Each card is an opaque, self-shadowed panel so the three read as separate
   cards floating over the (transparent) page — no filled tray behind them. */
.account-pricing-grid .pricing-card,
.account-pricing-grid .pricing-card.featured {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 340px;
    margin: 0;
    padding: 32px 28px;
    background: var(--surface-container);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 44px -20px rgba(26, 48, 80, 0.3);
    transform-origin: center center;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.35, 1),
        opacity 0.45s ease, box-shadow 0.45s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Central (featured) card: softer, more pronounced rounding on the top edge,
   with the brand accent bar (::after) rounded to match so it hugs the corners. */
.account-pricing-grid .pricing-card.featured,
.account-pricing-grid .pricing-card.featured::after {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* Active card — front and center. z-index wins over .glow-card:hover (0,2,0 vs
   0,3,0) so hovering a side peek never jumps it in front of the active card. */
.account-pricing-grid .pricing-card.is-active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    z-index: 3;
    cursor: default;
    box-shadow: 0 30px 70px -26px rgba(26, 48, 80, 0.45);
}

/* Left peek */
.account-pricing-grid .pricing-card.is-prev {
    transform: translateX(calc(-50% - 60%)) scale(0.82) rotateY(22deg);
    opacity: 0.7;
    z-index: 1;
    cursor: pointer;
}

/* Right peek */
.account-pricing-grid .pricing-card.is-next {
    transform: translateX(calc(-50% + 60%)) scale(0.82) rotateY(-22deg);
    opacity: 0.7;
    z-index: 1;
    cursor: pointer;
}

.account-pricing-grid .pricing-card.is-prev:hover,
.account-pricing-grid .pricing-card.is-next:hover {
    opacity: 0.92;
}

/* A receded card's CTA must not receive clicks: the CTA's inline onclick fires
   BEFORE the card's click-to-center handler, so without this a click on a peek
   card over its button could start a checkout. With pointer-events off, the
   click falls through to the card and just re-centers it (positionCarousel
   also drops these CTAs from the tab order via tabIndex). */
.account-pricing-grid .pricing-card:not(.is-active) .billing-cta,
.account-pricing-grid .pricing-card:not(.is-active) .billing-cta-current {
    pointer-events: none;
}

/* Second-level peeks — shown when the active card is at an end (no looping), so
   both remaining plans recede as a deck on the same side. */
.account-pricing-grid .pricing-card.is-far-prev {
    transform: translateX(calc(-50% - 94%)) scale(0.68) rotateY(24deg);
    opacity: 0.4;
    z-index: 0;
    cursor: pointer;
}
.account-pricing-grid .pricing-card.is-far-next {
    transform: translateX(calc(-50% + 94%)) scale(0.68) rotateY(-24deg);
    opacity: 0.4;
    z-index: 0;
    cursor: pointer;
}

/* Respect reduced-motion: keep the coverflow layout but drop the sliding/
   rotating transitions so re-centering a plan card is instant, not animated. */
@media (prefers-reduced-motion: reduce) {
    .account-pricing-grid.pricing-grid,
    .account-pricing-grid .pricing-card,
    .account-pricing-grid .pricing-card.featured {
        transition: none;
    }
}

/* Circular navigation arrows flanking the carousel. */
.plan-carousel-arrow {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border-default);
    border-radius: 50%;
    background: var(--surface-container);
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
    box-shadow: 0 8px 20px -10px rgba(26, 48, 80, 0.3);
    transition: background 0.2s ease, border-color 0.2s ease,
        transform 0.15s ease, opacity 0.2s ease;
}
.plan-carousel-arrow:hover:not(:disabled) {
    border-color: var(--text-tertiary);
    transform: scale(1.06);
}
.plan-carousel-arrow:active:not(:disabled) {
    transform: scale(0.9);
}
/* Ends of the carousel — no wrap-around, so the terminal arrow is inert. */
.plan-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    box-shadow: none;
}

/* Highlight current plan card — tier-colored styles matching Word add-in */
.pricing-card.current-plan {
    position: relative;
}

/* Static "Current Plan" label replacing the button */
.billing-cta-current {
    text-align: center;
    padding: 10px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Muted downgrade cards */
.pricing-card.plan-downgrade {
    opacity: 0.6;
}

.pricing-card.plan-downgrade:hover {
    opacity: 0.85;
}

/* Tier-specific border colors */
.pricing-card.current-plan.tier-individual {
    border-color: rgba(139, 145, 159, 0.4);
}

.pricing-card.current-plan.tier-professional {
    border-color: rgba(124, 58, 237, 0.5);
}

.pricing-card.current-plan.tier-corporate {
    border-color: rgba(180, 130, 50, 0.5);
}

.account-current-plan-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    margin-left: 8px;
    vertical-align: middle;
}

/* Tier-specific badge colors */
.account-current-plan-label.tier-individual {
    background: rgba(139, 145, 159, 0.15);
    color: var(--text-secondary);
}

.account-current-plan-label.tier-professional {
    background: rgba(124, 58, 237, 0.12);
    color: #a78bfa;
}

.account-current-plan-label.tier-corporate {
    background: rgba(180, 130, 50, 0.15);
    color: #d4a017;
}


/* ==========================================
   FOOTER
   ========================================== */

/* Login-view legal links: floated in the page's bottom-right corner, sitting to
   the left of the language switcher (which is fixed at bottom:20px right:20px). */
.account-footer {
    position: fixed;
    bottom: 24px;
    right: 96px;
    z-index: 60;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-tertiary);
}

.account-footer a {
    color: var(--text-tertiary);
    transition: color 0.2s var(--easing);
}

.account-footer a:hover {
    color: var(--text-primary);
}


/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

/* Mobile sidebar overlay */
.account-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 49;
    opacity: 0;
    transition: opacity 0.2s;
}

.account-sidebar-overlay.visible {
    opacity: 1;
}

/* Mobile menu button */
.account-mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 48;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-container);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-elevated);
}

@media (max-width: 768px) {
    .account-dashboard {
        flex-direction: column;
    }

    .account-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 50;
        padding-top: 80px;
        transition: left 0.25s var(--easing);
        width: 260px;
        min-width: 260px;
        height: 100vh;
    }

    .account-sidebar.open {
        left: 0;
    }

    .account-sidebar-overlay {
        display: block;
    }

    .account-mobile-menu-btn {
        display: flex;
    }

    .account-content-inner {
        padding: 24px 20px 80px;
    }

    .account-form-row {
        grid-template-columns: 1fr;
    }

    .account-details-grid {
        grid-template-columns: 1fr 1fr;
    }

    .account-card-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .account-login-card {
        padding: 32px 24px;
    }

    /* Narrower carousel + tighter peeks so the active card fits a phone width. */
    .account-plans-carousel {
        gap: 0;
    }
    .account-pricing-grid .pricing-card,
    .account-pricing-grid .pricing-card.featured {
        max-width: 280px;
        padding: 28px 22px;
    }
    .account-pricing-grid .pricing-card.is-prev {
        transform: translateX(calc(-50% - 42%)) scale(0.78) rotateY(24deg);
    }
    .account-pricing-grid .pricing-card.is-next {
        transform: translateX(calc(-50% + 42%)) scale(0.78) rotateY(-24deg);
    }
    .plan-carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 19px;
    }

    .account-details-grid {
        grid-template-columns: 1fr;
    }

    .account-content-inner {
        padding: 20px 16px 80px;
    }

    .account-card {
        padding: 20px;
    }
}


/* ==========================================
   CUSTOM DIALOG
   ========================================== */

.account-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Confirmation dialogs must sit above every other overlay, incl. the firm modals
       (z-index 320 in account-firm.js), so a confirm prompt is never hidden behind them. */
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
}

.account-dialog-overlay.open {
    display: flex;
}

.account-dialog {
    background: var(--surface-container);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: accountFadeIn 0.2s var(--easing);
}

.account-dialog-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.account-dialog h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.account-dialog p {
    font-family: 'Newsreader', serif;
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 24px;
    line-height: 1.5;
}

.account-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.account-dialog-actions .btn {
    min-width: 120px;
    justify-content: center;
}


/* ==========================================
   CANCEL REASON DIALOG
   ========================================== */

/* Widen dialog when it contains the cancel reason form */
.account-dialog:has(.cancel-reason-dialog) {
    max-width: 440px;
}

.cancel-reason-dialog {
    text-align: left;
    margin: 0;
}

.cancel-reason-dialog .cancel-reason-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0 0 20px;
    line-height: 1.5;
}

.cancel-reason-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.cancel-reason-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--surface-container-high);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s var(--easing);
    position: relative;
}

.cancel-reason-option:hover {
    background: var(--surface-container-highest);
    border-color: var(--border-hover);
}

.cancel-reason-option.selected {
    background: rgba(58, 144, 255, 0.08);
    border-color: var(--brand-medium);
}

.cancel-reason-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-tertiary);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s var(--easing);
    position: relative;
    cursor: pointer;
    margin: 0;
}

.cancel-reason-option input[type="radio"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-medium);
    transition: transform 0.2s var(--easing);
}

.cancel-reason-option input[type="radio"]:checked {
    border-color: var(--brand-medium);
}

.cancel-reason-option input[type="radio"]:checked::after {
    transform: translate(-50%, -50%) scale(1);
}

.cancel-reason-option .cancel-reason-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-body);
    cursor: pointer;
    flex: 1;
    line-height: 1.4;
}

.cancel-reason-option.selected .cancel-reason-label {
    color: var(--text-primary);
}

.cancel-reason-textarea {
    width: 100%;
    margin-top: 4px;
    padding: 12px 14px;
    background: var(--surface-container-highest);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    resize: vertical;
    min-height: 64px;
    max-height: 120px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s var(--easing);
    line-height: 1.5;
}

.cancel-reason-textarea:focus {
    border-bottom-color: var(--tertiary);
}

.cancel-reason-textarea::placeholder {
    color: var(--text-tertiary);
}


/* ==========================================
   LOADING SPINNER
   ========================================== */

.account-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-tertiary);
    border-top-color: var(--brand-light);
    border-radius: 50%;
    animation: accountSpin 0.6s linear infinite;
}

@keyframes accountSpin {
    to { transform: rotate(360deg); }
}

/* Button loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}


/* ==========================================
   BILLING — Payment Methods & Invoices
   ========================================== */

.account-billing-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-pm-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--surface-container-high);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
}

.account-pm-icon {
    flex-shrink: 0;
    line-height: 0;
}

.account-pm-icon svg {
    display: block;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.account-pm-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.account-pm-brand {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.account-pm-number {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

.account-pm-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.account-pm-expiry {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-secondary);
}

.account-pm-default {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: rgba(89, 216, 222, 0.12);
    color: var(--tertiary);
}

.account-invoice-download {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--tertiary);
    text-decoration: none;
}
.account-invoice-download:hover {
    text-decoration: underline;
}

.account-invoice-status {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.account-invoice-status--paid {
    background: rgba(89, 216, 222, 0.12);
    color: var(--tertiary);
}

.account-invoice-status--open {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
}

.account-invoice-status--void,
.account-invoice-status--uncollectible {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-tertiary);
}

.account-invoice-status--draft {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-tertiary);
}


/* ==========================================================================
   BRAND v1.2-NAVY RE-SKIN  (Account page only — scoped to body.brand-navy)
   --------------------------------------------------------------------------
   The page above is token-driven (variables.css). Re-declaring those shared
   tokens on body.brand-navy re-themes every var(--…) consumer to the brand's
   navy-on-light palette without touching the shared stylesheets. Below the
   token block, we override the handful of hardcoded (non-token) values that
   bypass the token system: the navbar/footer chrome from landing.css, brand
   button glows, tier accents, status chips, dark overlays, and the mono
   label family. Values mirror src/taskpane/theme/lawrenceTheme.ts +
   brandExtensionTokens.ts. Since account.css loads on account.html only, all
   of this stays scoped to the Account page.
   ========================================================================== */

/* html sits ABOVE body, so it keeps the dark :root tokens — paint it paper too
   (covers overscroll / any edge the body doesn't fill). Unconditional on purpose: this file
   is loaded by account.html alone, whose <body class="brand-navy"> is static, so the :has()
   this used to carry bought nothing and cost the whole rule on any engine without :has()
   support — which meant dark rubber-band bleed behind a paper-white page. */
html { background-color: #F8F8FB; }

body.brand-navy {
    /* Re-resolve the inherited base text color to navy on the brand subtree
       (base.css sets `html { color: var(--text-body) }` from the dark :root). */
    color: var(--text-body);

    /* Surfaces — Paper #F8F8FB + light card fills (no pure white) */
    --surface-base: #F8F8FB;
    --surface-container-lowest: #F1F1F4;
    --surface-container-low: #F4F4F7;
    --surface-container: #F8F8FB;
    --surface-container-high: #F1F1F4;
    --surface-container-highest: #E6E8ED;
    --surface-bright: #F8F8FB;
    --surface-white: #F8F8FB;
    --surface-off-white: #F1F1F4;
    --surface-cool: #EFEFF2;
    --deep-navy: #F8F8FB;
    --midnight: #F1F1F4;
    --dark-indigo: #EFEFF2;

    /* Text — navy tiers */
    --text-primary: #1A3050;
    --text-body: #353B49;
    --text-secondary: #5B6373;
    --text-tertiary: #768396;

    /* Brand — navy ramp (brand-light mapped to navy for legibility on light) */
    --brand-dark: #1A3050;
    --brand-medium: #2D4A6B;
    --brand-light: #1A3050;

    /* Tertiary / accents -> navy */
    --tertiary: #2D4A6B;
    --tertiary-container: #6890F0;
    --on-tertiary-container: #F8F8FB;

    /* Borders — ink alpha on light */
    --border-default: rgba(10, 10, 18, 0.12);
    --border-hover: rgba(10, 10, 18, 0.22);

    /* Semantic states (brand tones, readable on light) */
    --success-green: #1B4332;
    --success-bg: rgba(27, 67, 50, 0.10);
    --danger-red: #7A1F1F;
    --danger-red-bg: rgba(122, 31, 31, 0.10);
    --warning-yellow: #94590E;

    /* Brand fill — solid navy (no cornflower on light) */
    --gradient-brand: #1A3050;

    /* Shadows — soft, low-alpha ink (Apple-like pop) */
    --shadow-card: 0 1px 2px rgba(10, 10, 18, 0.04), 0 8px 20px -12px rgba(10, 10, 18, 0.14);
    --shadow-card-hover: 0 2px 6px rgba(10, 10, 18, 0.06), 0 14px 32px -10px rgba(10, 10, 18, 0.22);
    --shadow-featured: 0 2px 6px rgba(10, 10, 18, 0.06), 0 20px 44px -20px rgba(10, 10, 18, 0.20);
    --shadow-elevated: 0 1px 2px rgba(10, 10, 18, 0.04), 0 20px 44px -20px rgba(10, 10, 18, 0.20);
    --shadow-nav: 0 1px 2px rgba(10, 10, 18, 0.04), 0 8px 20px -12px rgba(10, 10, 18, 0.14);

    /* Glass */
    --glass-bg: rgba(248, 248, 251, 0.92);
    --glass-border: rgba(10, 10, 18, 0.08);
}

body.brand-navy ::selection { background: rgba(26, 48, 80, 0.18); }

/* ---- Navbar chrome (landing.css hardcoded; account navbar is always .scrolled) ---- */
body.brand-navy .navbar-logo { filter: none; height: 40px; }
body.brand-navy .navbar.scrolled {
    background: rgba(248, 248, 251, 0.92);
    box-shadow: 0 1px 0 rgba(10, 10, 18, 0.06), 0 8px 24px -16px rgba(10, 10, 18, 0.18);
}
body.brand-navy .navbar-wordmark { height: 10px; width: auto; display: block; }

/* ---- Lockup: proporção do logo-horizontal aprovado --------------------------
   O lockup fixa a caixa alta do wordmark em 0.465x a altura do GLIFO do símbolo,
   e o glifo não é a caixa da imagem: logo-symbol.svg gasta ~45% do seu viewBox
   200x200 em respiro (o desenho ocupa 109.22 unidades), então uma img de 40px
   entrega 21.8px de marca e pede 10px de caixa alta. Mesma construção nos três
   lockups da página, que antes usavam 12px, 14px e 18px sem relação entre si.

   O gap horizontal é 0: o respiro à direita embutido no próprio SVG (49.08 de
   200, ou seja 9.8px numa img de 40px) já entrega o afastamento de 0.45x que o
   lockup pede. Qualquer gap em CSS dobraria essa distância. -------------------- */
body.brand-navy .navbar-brand { align-items: center; gap: 0; }
body.brand-navy .brand-lockup-text {
    display: flex;
    /* A baseline de uma <img> é sua borda inferior, e o viewBox do wordmark
       termina exatamente na baseline de "Lawrence", então o sufixo assenta na
       mesma linha do wordmark em contorno. */
    align-items: baseline;
    gap: 3px; /* 0.2em do corpo do sufixo */
}
/* Login: a caixa alta sobe pra 14px (símbolo de 56px), então o sufixo acompanha
   em 20px de corpo e 4px de gap, mantendo a mesma razão. */
body.brand-navy .brand-lockup-text--stacked {
    justify-content: center;
    margin: 0 auto 10px;
    gap: 4px;
}
body.brand-navy .brand-lockup-text--stacked .brand-ai-suffix { font-size: 20px; }
/* Sufixo "AI": peso 400 e opacity 0.45, como no header do painel do add-in.
   O corpo sai da caixa alta desejada dividida pela sCapHeight da Archivo
   (686/1000 em), então 10px de caixa alta pedem 15px de corpo. Ink, igual ao
   fill do SVG do wordmark, porque o sufixo é parte da marca e não texto de UI. */
body.brand-navy .brand-ai-suffix {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    color: #0A0A12;
    opacity: 0.45;
    user-select: none;
}

/* ---- Header menu button (moved from the bottom FAB; mobile only) ---- */
body.brand-navy .account-header-menu-btn {
    display: none;
    position: absolute;
    /* O ícone de 22px fica centrado na caixa de toque de 40px, logo sobram 9px de folga
       interna de cada lado. Com left:0 o traço do hambúrguer caía em 9px enquanto o conteúdo
       da página começa em 16px (padding do .account-content-inner), e o botão parecia colado
       na borda. Recuar a caixa em (16 - 9) alinha o TRAÇO com o texto abaixo sem encolher o
       alvo de toque. O containing block de um absolute é o padding box, por isso os 24px do
       .container não entram nessa conta. */
    left: calc(16px - (40px - 22px) / 2);
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #1A3050;
    cursor: pointer;
    transition: background 0.15s var(--easing);
}
body.brand-navy .account-header-menu-btn:hover { background: rgba(10, 10, 18, 0.05); }
@media (max-width: 768px) {
    body.brand-navy .account-header-menu-btn { display: inline-flex; }
}
body.brand-navy .navbar-links a,
body.brand-navy .navbar.scrolled .navbar-links a { color: #5B6373; }
body.brand-navy .navbar-links a:hover,
body.brand-navy .navbar.scrolled .navbar-links a:hover { color: #1A3050; }
body.brand-navy .navbar-login,
body.brand-navy .navbar.scrolled .navbar-login { color: #5B6373; }
body.brand-navy .navbar-login:hover,
body.brand-navy .navbar.scrolled .navbar-login:hover { color: #1A3050; }
body.brand-navy .navbar-toggle span { background: #1A3050; }

/* ---- Language menu (translation icon + PT/EN/ES dropdown) ---- */
body.brand-navy .lang-menu { position: relative; }
body.brand-navy .lang-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 6px 9px;
    border-radius: 8px;
    background: rgba(10, 10, 18, 0.04);
    border: 1px solid rgba(10, 10, 18, 0.10);
    color: #1A3050;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s var(--easing), border-color 0.2s var(--easing);
}
body.brand-navy .lang-menu-trigger:hover { background: rgba(10, 10, 18, 0.07); border-color: rgba(10, 10, 18, 0.18); }
body.brand-navy .lang-menu-trigger svg { width: 16px; height: 16px; display: block; }
body.brand-navy .lang-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
    padding: 6px;
    background: #F8F8FB;
    border: 1px solid var(--border-default);
    border-radius: 12px;
    box-shadow: var(--shadow-card-hover);
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 200;
}
body.brand-navy .lang-menu.open .lang-menu-dropdown { display: flex; }
body.brand-navy .lang-menu-option {
    text-align: left;
    padding: 9px 12px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #353B49;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s var(--easing), color 0.15s var(--easing);
}
body.brand-navy .lang-menu-option:hover { background: #E5EBFA; color: #1A3050; }
body.brand-navy .lang-menu-option.active { background: rgba(26, 48, 80, 0.08); color: #1A3050; font-weight: 600; }

/* ---- Footer ---- */
body.brand-navy .footer-brand img { filter: none; }

/* ---- Brand buttons (navy, subtle elevation — no glow bloom) ---- */
body.brand-navy .btn-primary { box-shadow: var(--shadow-card); }
body.brand-navy .btn-primary:hover { box-shadow: var(--shadow-card-hover); }
body.brand-navy .btn-white { background: #1A3050; color: #F8F8FB; }
body.brand-navy .btn-ghost:hover { border-color: rgba(10, 10, 18, 0.22); background: rgba(10, 10, 18, 0.04); }

/* ---- Login / forgot-password stray hardcoded values ---- */
body.brand-navy .account-forgot-link a { color: #1A3050; }
body.brand-navy .account-forgot-hint { color: #5B6373; }
body.brand-navy .account-login-success { background: rgba(27, 67, 50, 0.10); color: #1B4332; }
body.brand-navy .account-login-error,
body.brand-navy .account-password-error { background: rgba(122, 31, 31, 0.08); border-color: rgba(122, 31, 31, 0.25); }
body.brand-navy .account-nav-danger:hover { background: rgba(122, 31, 31, 0.10); }

/* ---- Tier accents: purple -> navy, gold -> brand bronze (#94590E) ---- */
body.brand-navy .account-user-tier.tier-professional,
body.brand-navy .account-usage-tier.tier-professional,
body.brand-navy .account-current-plan.tier-professional h3 { color: #1A3050; }
body.brand-navy .account-user-tier.tier-corporate,
body.brand-navy .account-usage-tier.tier-corporate,
body.brand-navy .account-current-plan.tier-corporate h3 { color: #94590E; }

body.brand-navy .account-usage-bar.tier-individual { background: #768396; }
body.brand-navy .account-usage-bar.tier-professional { background: #1A3050; }
body.brand-navy .account-usage-bar.tier-corporate { background: #94590E; }
body.brand-navy .account-usage-bar.warning { background: #94590E !important; }
body.brand-navy .account-usage-bar.danger { background: #7A1F1F !important; }
body.brand-navy .account-usage-bar-container,
body.brand-navy .account-usage-bar { border-radius: 4px; }

body.brand-navy .account-current-plan.tier-individual { border-color: rgba(118, 131, 150, 0.35); }
body.brand-navy .account-current-plan.tier-professional {
    border-color: rgba(26, 48, 80, 0.28);
    background: #E5EBFA;
}
body.brand-navy .account-current-plan.tier-corporate {
    border-color: rgba(148, 89, 14, 0.28);
    background: rgba(148, 89, 14, 0.06);
}

body.brand-navy .account-plan-badge span { background: rgba(26, 48, 80, 0.10); color: #1A3050; border-radius: 6px; }
body.brand-navy .account-current-plan.tier-professional .account-plan-badge span { background: rgba(26, 48, 80, 0.10); color: #1A3050; }
body.brand-navy .account-current-plan.tier-corporate .account-plan-badge span { background: rgba(148, 89, 14, 0.12); color: #94590E; }
body.brand-navy .account-current-plan-label.tier-professional { background: rgba(26, 48, 80, 0.10); color: #1A3050; border-radius: 6px; }
body.brand-navy .account-current-plan-label.tier-corporate { background: rgba(148, 89, 14, 0.12); color: #94590E; border-radius: 6px; }

body.brand-navy .account-current-plan.tier-professional .account-usage-reset,
body.brand-navy .account-current-plan.tier-professional .account-usage-details { color: rgba(26, 48, 80, 0.75); }
body.brand-navy .account-current-plan.tier-corporate .account-usage-reset,
body.brand-navy .account-current-plan.tier-corporate .account-usage-details { color: rgba(148, 89, 14, 0.85); }
body.brand-navy .account-current-plan.tier-professional .account-usage-bar-container { background: rgba(26, 48, 80, 0.12); }
body.brand-navy .account-current-plan.tier-corporate .account-usage-bar-container { background: rgba(148, 89, 14, 0.14); }
body.brand-navy .pricing-card.current-plan.tier-professional { border-color: rgba(26, 48, 80, 0.5); }
body.brand-navy .pricing-card.current-plan.tier-corporate { border-color: rgba(148, 89, 14, 0.5); }

/* Credits desc: brand bronze solid (no gradient text-clip) */
body.brand-navy .pricing-card-desc {
    background: none;
    -webkit-text-fill-color: #94590E;
    color: #94590E;
}

/* Pricing toggle + badges: subtle radius, never pill */
body.brand-navy .pricing-toggle-pill {
    border-radius: 8px;
    background: #F1F1F4;
}
body.brand-navy .pricing-pill-option,
body.brand-navy .pricing-pill-slider {
    border-radius: 6px;
}
body.brand-navy .pricing-pill-badge {
    border-radius: 4px;
    background: rgba(26, 48, 80, 0.10);
    color: #1A3050;
}
body.brand-navy .pricing-card-badge {
    color: #F8F8FB;
    border-radius: 6px;
    background: #1A3050;
}
body.brand-navy .pricing-card-savings {
    border-radius: 6px;
    background: rgba(26, 48, 80, 0.08);
    color: #1A3050;
}

/* Kill landing glow-card mouse bloom on account. No hover transform reset here:
   the only .glow-card elements on this page are the plan-carousel pricing cards,
   which are POSITIONED via transform — a `transform: none` on :hover (higher
   specificity than the .is-active/.is-prev/.is-next rules) snapped a hovered
   card out of its coverflow slot, reading as a focus change. */
body.brand-navy .glow-card::before { display: none; }

/* ---- Apps cards ---- */
body.brand-navy .account-app-icon--word { background: rgba(26, 48, 80, 0.10); color: #1A3050; }
body.brand-navy .account-app-icon--pdf { background: rgba(148, 89, 14, 0.10); color: #94590E; }
body.brand-navy .account-app-card:not(.account-app-card--expanded):hover { box-shadow: var(--shadow-card-hover); }
body.brand-navy .account-app-platform { background: rgba(10, 10, 18, 0.04); }
body.brand-navy .account-app-step-num { background: rgba(26, 48, 80, 0.10); border-radius: 6px; }
body.brand-navy .account-app-step-num--pdf { background: rgba(148, 89, 14, 0.12); color: #94590E; }
body.brand-navy .account-app-install-btn--pdf { background: #94590E !important; border-color: #94590E !important; }
body.brand-navy .account-app-install-btn--pdf:hover { background: #7A480B !important; }

/* ---- Status: state-chip pattern (dot + label), no filled pill ---- */
body.brand-navy .account-pm-default,
body.brand-navy .account-invoice-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
body.brand-navy .account-pm-default::before,
body.brand-navy .account-invoice-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
body.brand-navy .account-pm-default,
body.brand-navy .account-invoice-status--paid { color: #1A3050; }
body.brand-navy .account-invoice-status--open { color: #94590E; }
body.brand-navy .account-invoice-status--void,
body.brand-navy .account-invoice-status--uncollectible,
body.brand-navy .account-invoice-status--draft { color: #5B6373; }
body.brand-navy .cancel-reason-option.selected { background: rgba(26, 48, 80, 0.06); }

/* ---- Warning state banners (no lateral bar, brand warning tone) ---- */
body.brand-navy .account-state-banner--warning {
    background: rgba(148, 89, 14, 0.08);
    border-color: rgba(148, 89, 14, 0.28);
}
body.brand-navy .account-state-banner--warning .account-state-banner-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #94590E;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
body.brand-navy .account-state-banner--warning .account-state-banner-title::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
body.brand-navy .account-state-banner--warning .account-state-banner-body {
    margin: 0;
    color: #94590E;
    font-size: 14px;
    line-height: 1.5;
}
body.brand-navy .account-cancellation-inline {
    margin-top: 16px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 89, 14, 0.28);
}
body.brand-navy .account-cancellation-inline .account-state-banner-body {
    margin: 0 0 12px;
}
body.brand-navy .account-cancel-link-wrap {
    margin-top: 12px;
    text-align: right;
}
body.brand-navy .account-cancel-link {
    color: #5B6373;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.brand-navy .account-cancel-link:hover {
    color: #7A1F1F;
}

/* ---- Delete account (light-readable) ---- */
body.brand-navy .account-delete-card {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(10, 10, 18, 0.12);
}
body.brand-navy .account-delete-trigger {
    background: none;
    border: none;
    color: #5B6373;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
body.brand-navy .account-delete-trigger:hover { color: #7A1F1F; }
body.brand-navy .account-delete-warning {
    color: #5B6373;
    font-size: 13px;
    margin: 0 0 12px;
    line-height: 1.4;
}
body.brand-navy .account-delete-password { max-width: 300px; }
body.brand-navy .account-delete-actions { margin-top: 8px; }
body.brand-navy .account-delete-confirm {
    background: none;
    border: 1px solid rgba(122, 31, 31, 0.35);
    color: #7A1F1F;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
}
body.brand-navy .account-delete-confirm:hover {
    background: rgba(122, 31, 31, 0.08);
}

body.brand-navy .account-nav-admin-badge {
    margin-left: auto;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--surface-container-high);
    color: var(--brand-light);
}

/* ---- Dark overlays -> light ---- */
body.brand-navy .account-paywall { background: rgba(248, 248, 251, 0.92); }
body.brand-navy .account-paywall-icon {
    background: #E5EBFA;
    color: #1A3050;
}
body.brand-navy .account-dialog-overlay,
body.brand-navy .account-sidebar-overlay { background: rgba(26, 48, 80, 0.35); }
body.brand-navy .account-dialog { box-shadow: var(--shadow-elevated); }

/* ---- Login / forgot cards — static shell (no decorative loop motion) ----
   Same composition as the add-in login (DS v1.3 login cell): brand still at
   opacity 0.5 behind, Paper card with NO border lifted by its own shadow. The
   card is Paper, not the panel card fill, so the ink-4%-over-paper field fill
   still reads as a field on top of it. */
/* The still at 50% strength. A flat 50% Paper wash composited over the image is
   arithmetically identical to `opacity: 0.5` on the image over Paper, and it
   lives on the element's own background — no pseudo-element, no stacking
   context, nothing that a z-index elsewhere can get in front of. */
body.brand-navy .account-login-view {
    background-color: var(--surface-base);
    background-image:
        linear-gradient(rgba(248, 248, 251, 0.5), rgba(248, 248, 251, 0.5)),
        url("/assets/imagery/v1-story-a.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
body.brand-navy .account-login-card {
    position: relative;
    max-width: 340px;
    padding: 28px 28px 32px;
    border-radius: 18px;
    background: #F8F8FB;
    border: none;
    /* Same value the add-in card uses (--lw-login-shadow). */
    box-shadow: var(--shadow-elevated);
    animation: none;
}
body.brand-navy .account-login-brand { margin-bottom: 24px; }
body.brand-navy .account-login-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    animation: none;
}
/* Símbolo de 56px = 30.6px de glifo; 30.6 x 0.465 = 14px de caixa alta.
   A margem inferior passou para o wrapper .brand-lockup-text--stacked. */
body.brand-navy .account-login-wordmark {
    display: block;
    height: 14px;
    width: auto;
}
body.brand-navy .account-login-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1A3050;
}
body.brand-navy .account-login-form { gap: 16px; }
body.brand-navy .account-login-form label { gap: 4px; }
/* The field fill (#EFEFF2) sits ~1.01:1 against the card (#F1F1F4), so the fill
   alone doesn't read as an input — the DS input spec's resting hairline
   (`--border`) is what makes the box visible. */
body.brand-navy .account-login-form input {
    padding: 11px 12px;
    background: #EFEFF2;
    border: 1px solid rgba(10, 10, 18, 0.13);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1A3050;
    transition: border-color 0.2s var(--easing), box-shadow 0.2s var(--easing);
}
/* Touch: o Safari no iOS dá zoom na página ao focar QUALQUER input abaixo de 16px, e o
   re-skin Navy baixou estes campos de 16px para 14px. Em ponteiro grosso volta para 16px
   (o zoom involuntário no login é pior que a diferença de 2px) e a altura sobe para os
   44px de alvo mínimo do DS. Desktop segue com os 14px do desenho aprovado. */
@media (pointer: coarse) {
    body.brand-navy .account-login-form input {
        font-size: 16px;
        padding: 12px;
        min-height: 44px;
    }
}
body.brand-navy .account-login-form input:hover { border-color: #1A3050; }
/* The base rule kills the UA outline, so keyboard focus needs its own ring —
   and it has to differ from hover, which already darkens the border. */
body.brand-navy .account-login-form input:focus-visible {
    border-color: #1A3050;
    box-shadow: 0 0 0 2px rgba(26, 48, 80, 0.25);
}
body.brand-navy .account-login-form input::placeholder { color: #768396; }

/* Login card only: the field labels go visually hidden so the card matches the
   add-in's placeholder-only fields. They stay in the DOM inside their <label>,
   so the accessible name and the data-pt/en/es swap both keep working — and the
   forgot-password steps below keep their labels visible, where "Nova senha" vs
   "Confirmar senha" is the only thing telling the two fields apart.
   Targets the label span by class, NOT `label > span` — the password field's
   own wrapper is also a direct span child and would get clipped with it. */
body.brand-navy #loginForm .account-field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Password reveal — button overlaid on the right edge of the field. */
body.brand-navy .account-password-wrap {
    position: relative;
    display: block;
}
body.brand-navy .account-password-wrap input { width: 100%; }
body.brand-navy .account-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #5B6373;
    cursor: pointer;
    transition: color 0.15s var(--easing), background 0.15s var(--easing);
}
body.brand-navy .account-password-toggle svg { width: 18px; height: 18px; }
body.brand-navy .account-password-toggle:hover {
    color: #1A3050;
    background: #E5EBFA;
}
body.brand-navy .account-password-toggle:focus-visible {
    color: #1A3050;
    box-shadow: 0 0 0 2px rgba(26, 48, 80, 0.25);
}

body.brand-navy .account-login-btn {
    background: #1A3050;
    padding: 13px;
    font-size: 13px;
    font-weight: 600;
    /* Radius 11 + navy glow: the DS login CTA, same as the add-in. */
    border-radius: 11px;
    box-shadow: 0 8px 18px -8px rgba(26, 48, 80, 0.55);
}
body.brand-navy .account-login-btn:hover {
    background: #14253E;
    box-shadow: 0 10px 22px -8px rgba(26, 48, 80, 0.65);
    transform: none;
}
body.brand-navy .account-forgot-link a,
body.brand-navy .account-login-footer a { color: #1A3050; font-size: 13px; }
body.brand-navy .account-forgot-link a:hover,
body.brand-navy .account-login-footer a:hover { color: #14253E; text-decoration: underline; }

/* Avatar: solid navy (no cornflower gradient) */
body.brand-navy .account-avatar {
    background: #1A3050;
    color: #F8F8FB;
}

/* Editorial cards: approved shell (paper + hairline + radius 16 + soft shadow) */
body.brand-navy .account-card {
    background: #F8F8FB;
    border: 1px solid rgba(10, 10, 18, 0.13);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px -16px rgba(0, 0, 0, 0.22);
}
body.brand-navy .account-app-card {
    background: #F8F8FB;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px -16px rgba(0, 0, 0, 0.22);
}
body.brand-navy .account-pricing-grid .pricing-card,
body.brand-navy .account-pricing-grid .pricing-card.featured {
    background: #F8F8FB;
    border: 1px solid rgba(10, 10, 18, 0.13);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px -16px rgba(0, 0, 0, 0.22);
}

/* Inline spinner: keep small; brand loaders for primary flows elsewhere */
body.brand-navy .account-spinner {
    border-color: rgba(26, 48, 80, 0.2);
    border-top-color: #1A3050;
    animation: accountSpin 0.6s linear infinite;
}

/* ---- Mono labels (IBM Plex Mono, uppercase tracked) ---- */
body.brand-navy .account-login-form label span,
body.brand-navy .account-form-field span,
body.brand-navy .account-detail-label,
body.brand-navy .account-usage-table th,
body.brand-navy .account-plan-badge span,
body.brand-navy .account-current-plan-label,
body.brand-navy .billing-cta-current,
body.brand-navy .account-pm-default,
body.brand-navy .account-invoice-status {
    font-family: 'IBM Plex Mono', monospace;
}

/* ==========================================================================
   HEADER: mobile-only. On desktop the dashboard has a full sidebar and the
   login view is a centered card, so the top navbar is removed. On mobile it
   stays as the menu-button (+ brand) bar. The language switcher lives in the
   sidebar (dashboard) and the login card (login/forgot) instead of the header.
   ========================================================================== */

/* Center the brand in the header; the menu button floats at the left edge. */
body.brand-navy .navbar-inner { justify-content: center; position: relative; }

/* Logged out (login / forgot-password): the header is dashboard chrome — its
   menu button has nothing to open and its lockup duplicates the card's own, so
   it goes away at every width, not just desktop. `.account-login-view`'s 80px
   top padding is navbar clearance, so it collapses with it or the card sits low. */
body.brand-navy.is-logged-out .navbar { display: none; }
body.brand-navy.is-logged-out .account-login-view { padding-top: 40px; }

@media (min-width: 769px) {
    body.brand-navy .navbar { display: none; }
    body.brand-navy .account-dashboard { padding-top: 0; }
    body.brand-navy .account-sidebar { height: 100vh; }
    body.brand-navy .account-content { height: 100vh; }
    body.brand-navy .account-login-view { padding-top: 40px; }
}

/* Language switcher — card variant (login / forgot): floats in the app's
   bottom-right corner (pinned to the viewport, not the card). Dropdown opens
   upward so it stays on-screen. */
body.brand-navy .lang-menu--card { position: fixed; bottom: 20px; right: 20px; top: auto; z-index: 60; }
body.brand-navy .lang-menu--card .lang-menu-dropdown { top: auto; bottom: calc(100% + 8px); }

/* Center the avatar + name/tier group in the column. */
body.brand-navy .account-sidebar-user { justify-content: center; }
body.brand-navy .account-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 16px;
}

/* Language switcher — sidebar variant: styled like a nav item ("Alterar idioma"),
   sits just above the footer line, and expands PT/EN/ES inline (accordion). */
body.brand-navy .lang-menu--sidebar { padding: 0 12px; }
body.brand-navy .lang-menu--sidebar .lang-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s var(--easing);
}
body.brand-navy .lang-menu--sidebar .lang-menu-trigger:hover {
    background: var(--surface-container);
    color: var(--text-primary);
}
body.brand-navy .lang-menu--sidebar .lang-menu-trigger > svg:first-child {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
body.brand-navy .lang-menu--sidebar .lang-menu-chevron {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s var(--easing);
}
/* Lateral flyout: fixed-positioned (set by JS) so it escapes the sidebar's
   overflow clipping and floats beside the item as a grouped menu card. */
body.brand-navy .lang-menu--sidebar .lang-menu-dropdown {
    position: fixed;
    display: none;
    min-width: 168px;
    margin: 0;
    padding: 6px;
    background: #F8F8FB;
    border: 1px solid var(--border-default);
    border-radius: 12px;
    box-shadow: var(--shadow-card-hover);
    z-index: 300;
    flex-direction: column;
    gap: 2px;
}
body.brand-navy .lang-menu--sidebar.open .lang-menu-dropdown { display: flex; }
body.brand-navy .lang-menu--sidebar .lang-menu-option {
    padding: 9px 12px;
    font-size: 14px;
    border-radius: 8px;
}

/* ==========================================================================
   Form fields — responsiveness + font fixes
   - Grid blowout: inputs lacked width:100%/box-sizing and the grid items lacked
     min-width:0, so a 2-column row (Nome/Sobrenome) overflowed the card. Fix both.
   - Fonts: input values, data values and the field hint used the display serif
     (Newsreader) / mono, which reads oddly for form data. Use the sans UI font.
   ========================================================================== */
body.brand-navy .account-form-field { min-width: 0; }
body.brand-navy .account-form-field input,
body.brand-navy .account-form-field textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}
body.brand-navy .account-detail-value { font-family: 'Inter', sans-serif; }
body.brand-navy .account-form-field .account-field-hint { font-family: 'Inter', sans-serif; }
