.account-manage-shell {
    width: 90vw;
    max-width: none;
    margin: 0 auto;
    padding: 40px 32px 72px;
}

.account-manage-header {
    position: relative;
    margin-bottom: 28px;
    padding: 32px;
    border: 1px solid rgba(15, 61, 46, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(59, 111, 232, 0.14), transparent 32%),
        linear-gradient(135deg, #071810 0%, #0f3d2e 48%, #162d52 100%);
    color: #fff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.account-manage-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.5;
}

.account-manage-kicker,
.account-section-kicker,
.account-nav-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-manage-header h1 {
    margin: 14px 0 10px;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.02;
}

.account-manage-header p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.7;
}

.account-manage-highlights {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.account-manage-highlights span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.account-manage-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.account-nav-card,
.account-manage-content,
.account-panel {
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.account-manage-content {
    min-width: 0;
    padding: 28px;
}

.account-nav-card {
    position: sticky;
    top: 104px;
    padding: 20px;
}

.account-nav-head {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.account-nav-head strong {
    color: #0f172a;
    font-size: 20px;
    line-height: 1.1;
}

.account-nav-kicker {
    border-color: rgba(15, 61, 46, 0.12);
    background: rgba(15, 61, 46, 0.06);
    color: #0f3d2e;
}

.account-nav-list {
    display: grid;
    gap: 10px;
}

.account-nav-link {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    color: #0f172a;
    text-decoration: none;
    background: #f8fafc;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.account-nav-link:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 61, 46, 0.12);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    background: #fff;
}

.account-nav-link.active {
    border-color: rgba(59, 111, 232, 0.18);
    background: linear-gradient(135deg, rgba(59, 111, 232, 0.1), rgba(15, 61, 46, 0.06));
    box-shadow: 0 12px 28px rgba(59, 111, 232, 0.14);
}

.account-nav-label {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.account-nav-copy {
    color: rgba(15, 23, 42, 0.62);
    font-size: 13px;
    line-height: 1.45;
}

.account-section-head {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.account-section-kicker {
    width: fit-content;
    border-color: rgba(15, 61, 46, 0.12);
    background: rgba(15, 61, 46, 0.06);
    color: #0f3d2e;
}

.account-section-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.7rem, 2vw, 2.2rem);
    line-height: 1.08;
}

.account-section-head p {
    max-width: 720px;
    margin: 0;
    color: rgba(15, 23, 42, 0.66);
    font-size: 15px;
    line-height: 1.7;
}

.account-status,
.account-alert {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.6;
}

.account-status-success {
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.18);
}

.account-status-danger,
.account-alert-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.18);
}

.account-alert-warning {
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.18);
}

.account-alert-info {
    background: rgba(59, 111, 232, 0.08);
    color: #1d4ed8;
    border-color: rgba(59, 111, 232, 0.16);
}

.account-status p,
.account-alert p {
    margin: 0;
}

.account-status strong,
.account-alert strong {
    display: block;
    margin-bottom: 4px;
}

.account-panel {
    padding: 24px;
}

.account-panel + .account-panel {
    margin-top: 18px;
}

.account-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.account-panel-head h3,
.account-subsection h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.15;
}

.account-summary-grid,
.account-split-grid,
.account-feature-grid,
.account-security-grid {
    display: grid;
    gap: 16px;
}

.account-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.account-split-grid,
.account-security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.account-summary-card,
.account-feature-card,
.account-security-card,
.account-code-card {
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 20px;
    background: #f8fafc;
}

.account-summary-card,
.account-feature-card,
.account-security-card {
    padding: 18px 20px;
}

.account-summary-card strong,
.account-feature-card strong,
.account-security-card strong,
.account-data-card strong {
    display: block;
    color: #0f172a;
}

.account-summary-card strong {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 8px;
}

.account-summary-card span,
.account-feature-card p,
.account-security-card p,
.account-data-card p,
.account-code-card span {
    color: rgba(15, 23, 42, 0.66);
    font-size: 14px;
    line-height: 1.6;
}

.account-summary-card span {
    display: block;
}

.account-feature-card ul,
.account-security-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: rgba(15, 23, 42, 0.72);
    font-size: 14px;
    line-height: 1.65;
}

.account-data-card {
    display: grid;
    gap: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.account-data-card.account-data-card-danger {
    border-color: rgba(239, 68, 68, 0.16);
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.92) 0%, #fff 100%);
}

.account-data-actions,
.account-stack-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.account-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.account-meta-copy {
    display: grid;
    gap: 6px;
}

.account-meta-copy h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

.account-meta-copy p {
    margin: 0;
    color: rgba(15, 23, 42, 0.66);
    font-size: 14px;
    line-height: 1.65;
}

.account-key-block {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px dashed rgba(15, 61, 46, 0.2);
    border-radius: 18px;
    background: rgba(15, 61, 46, 0.03);
}

.account-qr-shell {
    min-height: 180px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
}

.account-code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.account-code-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
}

.account-code-card code {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.account-provider-card {
    position: relative;
}

.account-provider-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.account-provider-actions form {
    margin: 0;
}

.account-warning-stack {
    display: grid;
    gap: 12px;
}

.account-inline-link {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.account-inline-link:hover,
.account-link-button:hover {
    text-decoration: underline;
}

.account-panel-head p,
.account-subsection p,
.account-info-copy,
.account-danger-copy {
    margin: 0;
    color: rgba(15, 23, 42, 0.66);
    font-size: 14px;
    line-height: 1.7;
}

.account-form,
.account-stack {
    display: grid;
    gap: 16px;
}

.account-form-narrow {
    max-width: 560px;
}

.account-field {
    display: grid;
    gap: 8px;
}

.account-label {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-input,
.account-manage-content .form-control,
.account-manage-content .form-select,
.account-manage-content input[type="text"],
.account-manage-content input[type="email"],
.account-manage-content input[type="password"],
.account-manage-content input[type="search"] {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    background: #f8fafc;
    color: #0f172a;
    box-shadow: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.account-input:focus,
.account-manage-content .form-control:focus,
.account-manage-content .form-select:focus,
.account-manage-content input:focus {
    border-color: rgba(59, 111, 232, 0.5);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 111, 232, 0.12);
    outline: none;
}

.account-input:disabled,
.account-manage-content .form-control:disabled {
    color: #64748b;
    background: #eef2f6;
}

.account-validation-summary,
.account-validation-message {
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.5;
}

.account-validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.account-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.account-inline-form {
    display: inline-flex;
}

.account-btn,
.account-manage-content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.account-btn:hover,
.account-manage-content .btn:hover {
    transform: translateY(-2px);
}

.account-btn-primary,
.account-manage-content .btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b6fe8 100%);
    color: #fff;
    box-shadow: 0 12px 26px rgba(59, 111, 232, 0.24);
}

.account-btn-secondary {
    background: #fff;
    color: #1e3a8a;
    border-color: rgba(30, 58, 138, 0.18);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.account-btn-danger,
.account-manage-content .btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #fff;
    box-shadow: 0 12px 26px rgba(239, 68, 68, 0.22);
}

.account-link-button {
    border: 0;
    padding: 0;
    background: none;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.account-inline-note {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.account-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.account-badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.account-provider-list {
    display: grid;
    gap: 12px;
}

.account-provider-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
}

.account-provider-card strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
}

.account-provider-card p {
    margin: 0;
    color: rgba(15, 23, 42, 0.62);
    font-size: 13px;
}

.account-provider-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.account-steps {
    display: grid;
    gap: 16px;
    padding-left: 18px;
}

.account-steps li {
    padding-left: 4px;
}

.account-steps kbd {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid #dbe3ee;
    background: #f8fafc;
    color: #0f172a;
    font-size: 13px;
}

.account-manage-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.account-manage-content tbody tr {
    background: #f8fafc;
}

.account-manage-content td {
    padding: 16px 18px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.account-manage-content td:first-child {
    border-left: 1px solid #e2e8f0;
    border-radius: 16px 0 0 16px;
}

.account-manage-content td:last-child {
    border-right: 1px solid #e2e8f0;
    border-radius: 0 16px 16px 0;
    text-align: right;
}

@media (max-width: 900px) {
    .account-summary-grid,
    .account-split-grid,
    .account-security-grid {
        grid-template-columns: 1fr;
    }

    .account-panel,
    .account-manage-content {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .account-manage-shell {
        padding: 28px 16px 56px;
    }

    .account-manage-header,
    .account-nav-card,
    .account-manage-content,
    .account-panel {
        border-radius: 22px;
    }

    .account-actions,
    .account-data-actions,
    .account-stack-actions,
    .account-provider-actions {
        flex-direction: column;
    }

    .account-btn,
    .account-manage-content .btn {
        width: 100%;
    }
}

.account-manage-content a {
    color: #1d4ed8;
}

@media (max-width: 1024px) {
    .account-manage-grid {
        grid-template-columns: 1fr;
    }

    .account-nav-card {
        position: static;
    }
}

@media (max-width: 780px) {
    .account-manage-shell {
        padding: 28px 16px 56px;
    }

    .account-manage-header,
    .account-manage-content,
    .account-panel,
    .account-nav-card {
        padding: 20px;
    }

    .account-provider-card,
    .account-panel-head,
    .account-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .account-manage-content td,
    .account-manage-content td:last-child {
        text-align: left;
    }
}

/* ═══════════════════════════════════════════
   Account page (new design) — ac- prefix
   ═══════════════════════════════════════════ */

/* Force nav dark green on account page */
body:has(.ac-page) .nh-header {
    background: #0f3d2e !important;
    position: relative !important;
}

.ac-page {
    background: #f8fafc;
    min-height: 100vh;
    font-family: 'Geist', 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.ac-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 40px 80px;
}

.ac-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin: 0 0 24px;
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
}

.ac-loading {
    display: flex;
    justify-content: center;
    padding: 80px 0;
}

.ac-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

/* ── Sidebar ── */
.ac-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ac-avatar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 18px;
    text-align: center;
}

.ac-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0f3d2e;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.ac-avatar-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.ac-avatar-since {
    display: block;
    font-size: 12.5px;
    color: rgba(15, 23, 42, 0.5);
    margin-top: 3px;
}

.ac-nav-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 8px;
}

.ac-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: rgba(15, 23, 42, 0.5);
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    margin-bottom: 2px;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}

.ac-nav-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.ac-nav-active {
    background: rgba(16, 185, 129, 0.10) !important;
    color: #0f3d2e !important;
    font-weight: 600 !important;
}

.ac-nav-divider {
    border-top: 1px solid #e2e8f0;
    margin: 6px;
}

.ac-nav-logout {
    color: #ef4444 !important;
}

/* ── Main content ── */
.ac-main {
    min-width: 0;
}

.ac-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 26px;
    margin-bottom: 16px;
}

.ac-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.ac-card-head h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
    margin: 0;
}

/* ── Profile form ── */
.ac-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ac-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ac-field > .ac-input {
    width: 100%;
    min-width: 0;
}

.ac-field-span2 {
    grid-column: span 2;
}

.ac-field-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(15, 23, 42, 0.5);
}

/* reset anything Bootstrap touches on bare inputs inside ac-page */
.ac-page input,
.ac-page select,
.ac-page textarea {
    box-sizing: border-box;
}

.ac-page .ac-input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.5;
    outline: none;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.ac-page .ac-input::placeholder {
    color: rgba(15, 23, 42, 0.35);
    font-weight: 400;
}

.ac-page .ac-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
    outline: none;
    background: #fff;
}

.ac-page .ac-input:disabled {
    background: #f1f5f9;
    color: rgba(15, 23, 42, 0.35);
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* override Bootstrap focus ring if it fires */
.ac-page .ac-input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

/* ── Buttons ── */
.ac-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0b3d2e, #10b981);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s, transform 0.15s;
}

.ac-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.ac-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.ac-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ac-ghost:hover {
    border-color: #0f3d2e;
    box-shadow: 0 2px 8px rgba(15, 61, 46, 0.1);
}

.ac-inline-link {
    background: none;
    border: none;
    padding: 0;
    color: #0f3d2e;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-decoration: underline;
}

/* ── Status messages ── */
.ac-status-msg {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}
.ac-status-ok  { background: rgba(16,185,129,0.08); color: #047857; border-color: rgba(16,185,129,0.2); }
.ac-status-error { background: rgba(239,68,68,0.08); color: #b91c1c; border-color: rgba(239,68,68,0.2); }

/* ── Security rows ── */
.ac-security-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.ac-security-label { font-size: 14px; font-weight: 600; color: #0f172a; }
.ac-security-copy  { font-size: 12.5px; color: rgba(15,23,42,0.5); margin-top: 2px; }

/* ── Vehicle cards ── */
.ac-vehicle-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ac-vehicle-active {
    border: 1px solid #10b981;
    box-shadow: 0 0 0 1px #10b981, 0 6px 20px rgba(16,185,129,0.12);
}

.ac-vehicle-inactive {
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15,23,42,0.05);
}

.ac-vehicle-card:hover { transform: translateY(-2px); }

.ac-vehicle-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
}

.ac-vehicle-active .ac-vehicle-header { background: #0f3d2e; }
.ac-vehicle-inactive .ac-vehicle-header { background: #1f2937; }

.ac-vehicle-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 90% 10%, rgba(16,185,129,0.28), transparent 55%);
    pointer-events: none;
}

.ac-vehicle-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    z-index: 1;
}

.ac-vehicle-header-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.ac-vehicle-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #34d399;
    margin-bottom: 4px;
}

.ac-vehicle-name {
    display: block;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.ac-vehicle-year {
    display: block;
    font-size: 13px;
    color: rgba(233,242,238,0.75);
    margin-top: 2px;
}

.ac-vehicle-active-badge {
    flex-shrink: 0;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #34d399;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.ac-activate-btn {
    flex-shrink: 0;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.ac-vehicle-specs {
    display: grid;
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.ac-vehicle-specs-4 { grid-template-columns: repeat(4, 1fr); }
.ac-vehicle-specs-2 { grid-template-columns: repeat(4, 1fr); }

.ac-spec {
    padding: 0 16px;
    border-left: 1px solid #e2e8f0;
}

.ac-spec:first-child { padding-left: 0; border-left: none; }

.ac-spec-k {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15,23,42,0.4);
    margin-bottom: 4px;
}

.ac-spec-v {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
}

.ac-vehicle-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
}

/* ── Garage header ── */
.ac-garage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.ac-garage-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: #0f172a;
}

.ac-garage-copy {
    font-size: 13.5px;
    color: rgba(15,23,42,0.5);
    margin: 4px 0 0;
}

/* ── Orders ── */
.ac-order-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.ac-order-row:last-child { border-bottom: none; }

.ac-order-thumbs { display: flex; }

.ac-order-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

.ac-order-id   { font-size: 14px; font-weight: 600; color: #0f172a; }
.ac-order-date { font-size: 12.5px; color: rgba(15,23,42,0.5); margin-top: 2px; }

.ac-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ac-order-total { font-size: 16px; font-weight: 700; color: #0f3d2e; }

/* ── Favorites ── */
.ac-fav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.ac-fav-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s, box-shadow 0.18s;
}

.ac-fav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

.ac-fav-img {
    aspect-ratio: 4/3;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ac-fav-img img { width: 100%; height: 100%; object-fit: cover; }

.ac-fav-body    { padding: 12px 14px; }
.ac-fav-brand   { font-size: 11px; color: rgba(15,23,42,0.45); margin-bottom: 4px; }
.ac-fav-name    { font-size: 13.5px; font-weight: 600; color: #0f172a; margin-bottom: 8px; line-height: 1.35; }
.ac-fav-price   { font-size: 17px; font-weight: 700; color: #0f3d2e; }

/* ── Addresses ── */
.ac-address-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
}

.ac-default-badge {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #059669;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(16,185,129,0.10);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .ac-layout { grid-template-columns: 1fr; }
    .ac-sidebar { position: static; }
}

@media (max-width: 768px) {
    .ac-wrap { padding: 20px 16px 56px; }
    .ac-field-grid { grid-template-columns: 1fr; }
    .ac-field-span2 { grid-column: span 1; }
    .ac-fav-grid { grid-template-columns: repeat(2, 1fr); }
    .ac-order-row { grid-template-columns: 1fr; gap: 10px; }
    .ac-vehicle-specs-4 { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
    .ac-spec { padding: 0; border-left: none; }
}

@media (max-width: 480px) {
    .ac-fav-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   Garage page — vehicle cards (legacy, kept for /account/garage redirect)
   ═══════════════════════════════════════════ */

.garage-vehicle-card {
    border: 1px solid rgba(15, 61, 46, 0.12);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.garage-vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.garage-vehicle-card--active {
    border-color: #10b981;
    box-shadow: 0 0 0 1px #10b981, 0 8px 24px rgba(16, 185, 129, 0.12);
}

.garage-vehicle-card--active:hover {
    box-shadow: 0 0 0 1px #10b981, 0 16px 36px rgba(16, 185, 129, 0.18);
}

.garage-vehicle-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: #0f3d2e;
    position: relative;
    overflow: hidden;
}

.garage-vehicle-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 90% 10%, rgba(16, 185, 129, 0.28), transparent 55%);
    pointer-events: none;
}

.garage-vehicle-card--active .garage-vehicle-header {
    background: linear-gradient(135deg, #0b3d2e 0%, #0f3d2e 100%);
}

.garage-vehicle-header-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    z-index: 1;
}

.garage-vehicle-header-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.garage-vehicle-plate {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #34d399;
    margin-bottom: 4px;
}

.garage-vehicle-name {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.garage-vehicle-year {
    display: block;
    font-size: 13px;
    color: rgba(233, 242, 238, 0.75);
    margin-top: 2px;
}

.garage-active-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #34d399;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.garage-vehicle-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(15, 61, 46, 0.08);
}

.garage-spec-item {
    padding: 0 16px;
    border-left: 1px solid rgba(15, 61, 46, 0.1);
}

.garage-spec-item:first-child {
    padding-left: 0;
    border-left: none;
}

.garage-spec-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.45);
    margin-bottom: 4px;
}

.garage-spec-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.garage-vehicle-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
}

.garage-action-btn {
    min-height: 42px;
    padding: 0 18px;
    font-size: 13.5px;
}

.garage-btn-remove {
    background: #fff;
    color: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: none;
}

.garage-btn-remove:hover {
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.3);
    background: rgba(239, 68, 68, 0.04);
}

.garage-add-panel {
    margin-top: 4px;
}

@media (max-width: 640px) {
    .garage-vehicle-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .garage-spec-item {
        padding: 0;
        border-left: none;
    }

    .garage-vehicle-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .garage-action-btn {
        width: 100%;
        justify-content: center;
    }
}
