/* Member area and sign-in pages (templates/account/, template-parts/account/). */
.account-auth,
.account-section {
    --account-navy: #071127;
    --account-ink: #08162d; /* Headings, as on the homepage. */
    --account-text: #475569;
    --account-muted: #66758b; /* Body copy, as on the homepage. */
    --account-line: #e2e8f0;
    --account-soft: #f8fafc;
    --account-green: #3BA295;
    --account-grad: linear-gradient(90deg, #43B263 0%, #3BA295 50%, #3B7AB5 100%);
    color: var(--account-text);
}

/* ---------- Shared form controls ---------- */
.account-form {
    display: grid;
    gap: 16px;
}

.account-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.account-field label,
.account-chips legend {
    color: var(--account-ink);
    font-size: 14px;
    font-weight: 600;
}

.account-field label em {
    color: #dc2626;
    font-style: normal;
}

.account-field label small,
.account-chips legend small,
.account-more summary small {
    color: var(--account-muted);
    font-weight: 500;
}

.account-field input,
.account-field select,
.account-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: var(--account-ink);
    font: inherit;
    font-size: 15px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.account-field textarea {
    min-height: 96px;
    resize: vertical;
}

.account-field input:focus,
.account-field select:focus,
.account-field textarea:focus {
    border-color: var(--account-green);
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 162, 149, 0.15);
}

.account-field input[readonly] {
    background: var(--account-soft);
    color: var(--account-muted);
}

.account-field.has-error input,
.account-field.has-error select {
    border-color: #dc2626;
}

.account-hint {
    color: var(--account-muted);
    font-size: 13px;
}

.account-error {
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
}

.account-center {
    text-align: center;
}

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

.account-password {
    position: relative;
}

.account-password input {
    padding-right: 48px;
}

.account-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--account-muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.account-password-toggle::before {
    content: "";
    position: absolute;
    inset: 9px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.account-password-toggle[aria-pressed="true"] {
    color: var(--account-green);
}

.account-password-toggle:hover {
    background: #f1f5f9;
}

/* Box centred on the first line of text (22px line, 16px box), like the Contact form. */
.account-check,
.account-check span {
    line-height: 22px;
}

.account-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--account-text);
    font-size: 14px;
    cursor: pointer;
}

.account-check input {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    accent-color: var(--account-green);
}

.account-check a,
.account-auth-foot a,
.account-row a,
.account-card-head a,
.account-callout a,
.account-meter-note a,
.account-empty a {
    color: #047857;
    font-weight: 600;
}

.account-check.has-error {
    color: #b91c1c;
}

.account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
}

.account-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.account-chips legend {
    margin-bottom: 8px;
}

.account-chips label {
    cursor: pointer;
}

.account-chips input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-chips span {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid var(--account-line);
    border-radius: 9999px;
    background: #fff;
    color: var(--account-text);
    font-size: 13px;
    font-weight: 600;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.account-chips label:hover span {
    border-color: var(--account-green);
}

.account-chips input:checked + span {
    border-color: var(--account-green);
    background: #ecfdf5;
    color: #047857;
}

.account-chips input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(59, 162, 149, 0.3);
}

.account-more {
    padding: 14px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.account-more[open] {
    display: grid;
    gap: 14px;
}

.account-more summary {
    color: var(--account-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Buttons */
.account-submit,
.account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 0;
    border-radius: 9999px;
    background: var(--account-grad);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px -14px rgba(59, 162, 149, 0.9);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.account-submit {
    width: 100%;
    min-height: 50px;
}

a.account-submit,
a.account-btn,
a.account-submit:hover,
a.account-btn:hover {
    color: #fff;
}

.account-submit:hover:not(:disabled),
.account-btn:hover:not(.is-static) {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -14px rgba(59, 162, 149, 1);
}

.account-submit:disabled,
.account-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.account-submit.is-busy,
.account-btn.is-busy {
    position: relative;
    color: transparent !important;
}

.account-submit.is-busy::after,
.account-btn.is-busy::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: account-spin 700ms linear infinite;
}

@keyframes account-spin {
    to { transform: rotate(360deg); }
}

.account-btn.is-ghost,
a.account-btn.is-ghost {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: var(--account-ink);
    box-shadow: none;
}

.account-btn.is-ghost:hover:not(.is-static) {
    border-color: var(--account-green);
    color: #047857;
}

.account-btn.is-static {
    cursor: default;
}

.account-btn.is-danger {
    background: #dc2626;
    box-shadow: none;
}

.account-link {
    padding: 0;
    border: 0;
    background: none;
    color: #047857;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.account-link:disabled {
    color: var(--account-muted);
    cursor: default;
}

.account-notice {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.account-notice.is-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.account-notice.is-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #047857;
}

.account-notice.is-info {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

/* ---------- Sign-in pages ---------- */
.account-auth {
    padding: 48px 16px 80px;
    background: radial-gradient(circle at 10% 0%, #ecfdf5 0, transparent 40%), radial-gradient(circle at 90% 100%, #eff6ff 0, transparent 40%), #f5f7fb;
}

.account-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--account-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 40px 80px -48px rgba(5, 14, 33, 0.45);
}

.account-auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(67, 178, 99, 0.35), transparent 45%), radial-gradient(circle at 90% 80%, rgba(59, 122, 181, 0.45), transparent 50%), var(--account-navy);
    color: #fff;
}

.account-auth-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.account-auth-eyebrow {
    margin: 0 0 14px;
    color: #6ee7b7;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-auth-brand h2 {
    margin: 0 0 28px;
    color: #fff;
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 600;
    line-height: 1.2;
}

.account-auth-brand ul {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-auth-brand li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.5;
}

.account-auth-brand li span {
    display: inline-flex;
    flex: none;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(110, 231, 183, 0.18);
    color: #6ee7b7;
    font-size: 13px;
    font-weight: 700;
}

.account-auth-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 48px 56px;
}

.account-auth-card h1 {
    margin: 0;
    color: var(--account-ink);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

.account-auth-lead {
    margin: -8px 0 0;
    color: var(--account-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.account-auth-lead strong {
    color: var(--account-ink);
}

.account-auth-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #ecfdf5, #eff6ff);
    color: var(--account-green);
    font-size: 26px;
}

.account-auth-foot {
    margin: 0;
    color: var(--account-muted);
    font-size: 14px;
    text-align: center;
}

.account-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--account-muted);
    font-size: 13px;
}

.account-divider::before,
.account-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--account-line);
}

/* "Continue with Google / LinkedIn" (bambu_account_social_buttons()). */
.account-social {
    display: grid;
    gap: 10px;
}

.account-social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: var(--account-ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.account-social-button:hover,
.account-social-button:focus-visible {
    border-color: #94a3b8;
    background: var(--account-soft);
    color: var(--account-ink);
    box-shadow: 0 6px 16px -10px rgba(15, 23, 42, 0.35);
}

.account-social-button svg {
    flex: none;
}

.account-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--account-soft);
}

.account-identity img {
    border-radius: 50%;
}

.account-identity div {
    display: grid;
}

.account-identity strong {
    color: var(--account-ink);
}

.account-identity span {
    color: var(--account-muted);
    font-size: 13px;
}

.account-otp {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.account-otp input {
    width: 100%;
    height: 60px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    color: var(--account-ink);
    font: inherit;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.account-otp input:focus {
    border-color: var(--account-green);
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 162, 149, 0.15);
}

.account-resend {
    color: var(--account-muted);
    font-size: 14px;
    text-align: center;
}

.account-countdown {
    margin: 0;
    color: var(--account-ink);
    font-size: 32px;
    font-weight: 700;
    text-align: center;
}

/* ---------- Member area ---------- */
.account-section {
    padding: 48px 0 80px;
    background: #f5f7fb;
}

.account-container {
    width: calc(100% - (2 * var(--bambu-container-gutter, 24px)));
    max-width: var(--bambu-container-max-width, 1290px);
    margin-inline: auto;
}

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

.account-sidebar {
    position: sticky;
    top: 24px;
    padding: 20px;
    border: 1px solid var(--account-line);
    border-radius: 20px;
    background: #fff;
}

.account-me {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--account-line);
}

.account-me img {
    flex: none;
    border-radius: 50%;
}

.account-me div {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.account-me strong {
    overflow: hidden;
    color: var(--account-ink);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-plan-badge {
    justify-self: start;
    padding: 3px 10px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: var(--account-text);
    font-size: 12px;
    font-weight: 700;
}

.account-plan-badge.is-intelligence {
    background: #ecfdf5;
    color: #047857;
}

.account-plan-badge.is-connection,
.account-plan-badge.is-enterprise {
    background: var(--account-grad);
    color: #fff;
}

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

.account-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--account-text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.account-nav a:hover {
    background: var(--account-soft);
    color: var(--account-ink);
}

.account-nav a.is-active {
    background: linear-gradient(90deg, #ecfdf5 0%, #f8fafc 100%);
    color: #047857;
    box-shadow: inset 3px 0 0 var(--account-green);
}

.account-nav-count {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: 9999px;
    background: #2fd59d;
    color: #052e16;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.account-nav-admin,
.account-nav-logout {
    margin-top: 8px;
    border-top: 1px solid var(--account-line);
    border-radius: 0 0 12px 12px !important;
}

.account-nav-admin + .account-nav-logout {
    margin-top: 0;
    border-top: 0;
}

.account-main {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.account-card {
    padding: 28px;
    border: 1px solid var(--account-line);
    border-radius: 20px;
    background: #fff;
}

.account-card h2 {
    margin: 0 0 6px;
    color: var(--account-ink);
    font-size: 20px;
    font-weight: 600;
}

.account-card > h2 + .account-meters,
.account-card > h2 + .account-todo,
.account-card > h2 + .account-methods {
    margin-top: 16px;
}

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

.account-card-head h2 {
    margin: 0;
}

.account-muted {
    margin: 0;
    color: var(--account-muted);
    font-size: 14px;
    line-height: 1.6;
}

.account-eyebrow {
    margin: 0 0 4px;
    color: var(--account-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.account-empty {
    margin: 0;
    color: var(--account-muted);
    font-size: 14px;
}

.account-empty-state {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 32px 16px;
    border-radius: 16px;
    background: var(--account-soft);
    text-align: center;
}

.account-empty-state p {
    margin: 0;
}

.account-welcome {
    padding: 28px;
    border-radius: 20px;
    background: radial-gradient(circle at 90% 0%, rgba(59, 122, 181, 0.35), transparent 45%), var(--account-navy);
    color: #cbd5e1;
}

.account-welcome h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
}

.account-welcome p {
    margin: 0 0 18px;
}

.account-plan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(120deg, #fff 55%, #f0fdf4 100%);
}

.account-plan-card h2 {
    font-size: 26px;
}

.account-plan-card.is-connection,
.account-plan-card.is-enterprise {
    border: 0;
    background: radial-gradient(circle at 100% 0%, rgba(67, 178, 99, 0.35), transparent 50%), var(--account-navy);
}

.account-plan-card.is-connection h2,
.account-plan-card.is-enterprise h2 {
    color: #fff;
}

.account-plan-card.is-connection .account-muted,
.account-plan-card.is-enterprise .account-muted {
    color: #cbd5e1;
}

/* Meters */
.account-meters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-meter {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--account-line);
    border-radius: 14px;
    background: var(--account-soft);
}

.account-meter-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--account-text);
    font-size: 14px;
    font-weight: 600;
}

.account-meter-top strong {
    color: var(--account-ink);
    white-space: nowrap;
}

.account-meter.is-locked .account-meter-top strong {
    color: var(--account-muted);
    font-weight: 600;
}

.account-meter-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 9999px;
    background: #e2e8f0;
}

.account-meter-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--account-grad);
    transition: width 400ms ease;
}

.account-meter.is-high .account-meter-bar span {
    background: #f59e0b;
}

.account-meter.is-full .account-meter-bar span {
    background: #dc2626;
}

.account-meter-note {
    margin: 0;
    color: var(--account-muted);
    font-size: 12px;
}

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

.account-todo,
.account-activity,
.account-methods {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-todo a {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--account-line);
    border-radius: 14px;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.account-todo a:hover {
    border-color: var(--account-green);
    background: #f0fdf4;
}

.account-todo strong,
.account-activity strong,
.account-methods strong {
    color: var(--account-ink);
    font-size: 14px;
}

.account-todo span,
.account-methods span {
    color: var(--account-muted);
    font-size: 13px;
}

.account-activity a {
    display: grid;
    gap: 2px;
    padding: 10px 0 10px 14px;
    border-left: 3px solid #cbd5e1;
    text-decoration: none;
}

.account-activity .is-accepted a {
    border-color: #16a34a;
}

.account-activity time {
    color: var(--account-muted);
    font-size: 12px;
}

.account-methods li {
    display: grid;
    gap: 2px;
    padding: 12px 0;
    border-bottom: 1px solid var(--account-line);
}

.account-methods li:last-child {
    border-bottom: 0;
}

/* Profile */
.account-avatar-field {
    display: flex;
    align-items: center;
    gap: 18px;
}

.account-avatar-field img {
    flex: none;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
}

.account-avatar-field > div {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.account-avatar-field label.account-btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* Plans */
.account-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.account-offer {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 22px;
    border: 1px solid var(--account-line);
    border-radius: 20px;
    background: #fff;
}

.account-offer.is-recommended {
    border-color: var(--account-green);
    box-shadow: 0 24px 48px -32px rgba(59, 162, 149, 0.8);
}

.account-offer.is-current {
    background: var(--account-soft);
}

.account-offer-flag {
    position: absolute;
    top: -12px;
    left: 22px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: var(--account-grad);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.account-offer h3 {
    margin: 0;
    color: var(--account-ink);
    font-size: 18px;
}

.account-offer-tag {
    margin: 0;
    color: var(--account-muted);
    font-size: 13px;
}

.account-offer-price {
    margin: 4px 0;
    color: var(--account-muted);
    font-size: 13px;
}

.account-offer-price strong {
    color: var(--account-ink);
    font-size: 28px;
}

.account-offer ul {
    display: grid;
    flex: 1;
    gap: 8px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.account-offer li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.5;
}

.account-offer li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--account-green);
    font-weight: 700;
}

.account-enterprise {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    border-radius: 20px;
    background: var(--account-navy);
    color: #cbd5e1;
}

.account-enterprise h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 18px;
}

.account-enterprise h3 small {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.account-enterprise p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.account-table th,
.account-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--account-line);
    text-align: left;
}

.account-table th {
    color: var(--account-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.account-table .is-minus {
    color: #b91c1c;
    font-weight: 700;
}

.account-table .is-plus {
    color: #047857;
    font-weight: 700;
}

/* Saved */
.account-pill {
    padding: 4px 12px;
    border-radius: 9999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 13px;
    font-weight: 700;
}

.account-pill.is-full {
    background: #fef2f2;
    color: #b91c1c;
}

.account-callout {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fffbeb;
    color: #92400e;
    font-size: 14px;
}

.account-saved {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-saved li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--account-line);
    border-radius: 14px;
    transition: opacity 240ms ease, transform 240ms ease;
}

.account-saved li.is-removed {
    opacity: 0;
    transform: translateX(16px);
}

.account-saved-thumb img {
    display: block;
    width: 72px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
}

.account-saved-body {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
}

.account-saved-type {
    color: var(--account-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.account-saved-title {
    overflow: hidden;
    color: var(--account-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-saved-title:hover {
    color: #047857;
}

.account-saved-remove {
    padding: 8px 14px;
    border: 1px solid var(--account-line);
    border-radius: 9999px;
    background: #fff;
    color: var(--account-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease;
}

.account-saved-remove:hover {
    border-color: #fca5a5;
    color: #b91c1c;
}

/* Notifications */
.account-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.account-tabs button {
    padding: 7px 14px;
    border: 1px solid var(--account-line);
    border-radius: 9999px;
    background: #fff;
    color: var(--account-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.account-tabs button.is-active {
    border-color: var(--account-green);
    background: #ecfdf5;
    color: #047857;
}

.account-notifications {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-notifications a {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    transition: background-color 160ms ease;
}

.account-notifications a:hover {
    background: var(--account-soft);
}

.account-notifications .is-unread a {
    background: #f0fdf4;
}

.account-notification-icon {
    display: inline-flex;
    flex: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #94a3b8;
    color: #fff;
    font-weight: 700;
}

.is-accepted .account-notification-icon {
    background: #16a34a;
}

.account-notification-body {
    display: grid;
    gap: 2px;
    font-size: 14px;
}

.account-notification-body strong {
    color: var(--account-ink);
}

.account-notification-listing {
    color: #047857;
    font-size: 13px;
    font-weight: 600;
}

.account-notification-body time {
    color: var(--account-muted);
    font-size: 12px;
}

/* Delete */
.account-danger {
    border-color: #fecaca;
}

.account-danger h2 {
    color: #b91c1c;
}

.account-danger p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.account-danger details {
    display: grid;
    gap: 14px;
}

.account-danger details[open] {
    display: grid;
}

.account-danger summary {
    color: #b91c1c;
    font-weight: 700;
    cursor: pointer;
}

.account-danger details[open] summary {
    margin-bottom: 14px;
}

.account-danger .account-btn {
    margin-top: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .account-plans {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .account-auth-shell {
        grid-template-columns: 1fr;
    }

    .account-auth-brand {
        display: none;
    }

    .account-auth-card {
        padding: 36px 32px;
    }

    .account-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-sidebar {
        position: static;
        min-width: 0;
        padding: 12px;
    }

    .account-me {
        display: none;
    }

    .account-nav {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .account-nav::-webkit-scrollbar {
        display: none;
    }

    .account-nav a {
        flex: none;
        padding: 9px 12px;
        font-size: 14px;
    }

    .account-nav a.is-active {
        box-shadow: inset 0 -3px 0 var(--account-green);
    }

    .account-nav-admin,
    .account-nav-logout {
        margin-top: 0;
        border-top: 0;
    }
}

@media (max-width: 767px) {
    .account-auth {
        padding: 24px 16px 56px;
    }

    .account-auth-shell {
        border-radius: 22px;
    }

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

    .account-auth-card h1 {
        font-size: 25px;
    }

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

    .account-otp {
        gap: 6px;
    }

    .account-otp input {
        height: 52px;
        font-size: 22px;
    }

    .account-section {
        padding: 24px 0 56px;
    }

    .account-card {
        padding: 20px;
    }

    .account-enterprise {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-saved-thumb {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-submit,
    .account-btn,
    .account-saved li,
    .account-meter-bar span {
        transition: none;
    }
}

.account-enterprise .account-btn {
    flex: none;
    white-space: nowrap;
}

/* Connection requests inside the account card. */
.account-connections .my-connections-tabs {
    margin-bottom: 16px;
}

.account-connections .my-connection {
    border: 1px solid var(--account-line);
    box-shadow: none;
}

.account-how {
    display: grid;
    gap: 12px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
    counter-reset: account-how;
}

.account-how li {
    position: relative;
    display: grid;
    gap: 2px;
    padding-left: 40px;
    counter-increment: account-how;
}

.account-how li::before {
    content: counter(account-how);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ecfdf5;
    color: #047857;
    font-size: 13px;
    font-weight: 700;
}

.account-how strong {
    color: var(--account-ink);
    font-size: 14px;
}

.account-how span {
    color: var(--account-muted);
    font-size: 13px;
}

/* Field rows keep the input right under the label, even when the row next to it has a hint. */
.account-field {
    align-content: start;
}

/* Section switching without a page reload (account.js). */
.account-main {
    transition: opacity 180ms ease;
}

.account-main.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.account-main.is-entering > * {
    animation: account-enter 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.account-main.is-entering > *:nth-child(2) { animation-delay: 40ms; }
.account-main.is-entering > *:nth-child(3) { animation-delay: 80ms; }
.account-main.is-entering > *:nth-child(n+4) { animation-delay: 120ms; }

@keyframes account-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .account-main,
    .account-main.is-entering > * {
        transition: none;
        animation: none;
    }
}

.account-connections .my-connection.is-highlighted {
    border-color: var(--account-green);
    box-shadow: 0 0 0 3px rgba(59, 162, 149, 0.18);
}

/* Plan limits switched off: one calm note instead of meters. */
.account-allowance-off {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: #f0fdf4;
}

.account-allowance-off-icon {
    display: inline-flex;
    flex: none;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
}

.account-allowance-off strong {
    color: var(--account-ink);
    font-size: 15px;
    font-weight: 600;
}

.account-allowance-off p {
    margin: 4px 0 0;
    color: var(--account-muted);
    font-size: 14px;
}

.account-meter-full {
    color: #b91c1c;
    font-weight: 600;
}
