/* Member area and sign-in pages (templates/account/, template-parts/account/). */
.account-auth,
.account-section {
    --account-navy: #071127;
    --account-ink: #0f172a; /* Headings, as on Pricing. */
    --account-text: #475569;
    --account-muted: #64748b;
    --account-line: #e2e8f0;
    --account-soft: #f8fafc;
    --account-green: #3BA295;
    --account-teal-ink: #0f766e; /* Active filters and tabs on Innovation Hub. */
    --account-teal-soft: #f0fdfa;
    --account-grad: linear-gradient(90deg, #35ad68 0%, #1da095 28%, #227caf 55%, #7855a2 85%, #87516f 100%); /* Brand CTA gradient. */
    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: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 200ms ease, opacity 200ms ease, border-color 200ms ease, color 200ms 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) {
    opacity: 0.86;
    transform: translateY(-1px);
}

.account-submit:focus-visible,
.account-btn:focus-visible {
    outline: 2px solid var(--account-green) !important;
    outline-offset: 3px;
}

.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); }
}

/* Viền xanh như nút "Join Standard" trên Pricing. */
.account-btn.is-ghost,
a.account-btn.is-ghost {
    padding: 10px 22px;
    border: 2px solid #35ad68;
    background: #fff;
    color: #35ad68;
}

.account-btn.is-ghost:hover:not(.is-static) {
    opacity: 1;
    background: #f0fdf4;
}

.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;
}

.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 ---------- */
/* Cùng nền, card và trạng thái active với Pricing / Innovation Hub do agency thiết kế. */
.account-section {
    padding: 64px 0 96px;
    background: #e3e9f5;
}

.account-section ::selection {
    background: #ccfbf1;
    color: var(--account-ink);
}

.account-section a:focus-visible {
    outline: 2px solid var(--account-green);
    outline-offset: 2px;
    border-radius: 8px;
}

.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: 272px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.account-sidebar {
    position: sticky;
    top: 96px;
    padding: 20px 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.account-me {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 20px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

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

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

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

.account-plan-badge {
    justify-self: start;
    padding: 2px 10px;
    border: 1px solid var(--account-line);
    border-radius: 9999px;
    background: var(--account-soft);
    color: var(--account-text);
    font-size: 11px;
    font-weight: 700;
}

.account-plan-badge.is-intelligence {
    border-color: #99f6e4;
    background: var(--account-teal-soft);
    color: var(--account-teal-ink);
}

.account-plan-badge.is-connection,
.account-plan-badge.is-enterprise {
    border-color: transparent;
    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: 10px 12px;
    border-radius: 8px;
    color: var(--account-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.account-nav a svg {
    flex: none;
    color: #94a3b8;
    transition: color 160ms ease;
}

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

.account-nav a:hover svg {
    color: var(--account-text);
}

.account-nav a.is-active {
    background: var(--account-teal-soft);
    color: var(--account-teal-ink);
    font-weight: 700;
}

.account-nav a.is-active svg {
    color: #0d9488;
}

.account-nav-count {
    margin-left: auto;
    min-width: 20px;
    padding: 1px 7px;
    border-radius: 9999px;
    background: #0d9488;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.account-nav-admin,
.account-nav-logout {
    margin-top: 12px;
}

.account-nav-admin::before,
.account-nav-logout::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 8px;
    left: 8px;
    border-top: 1px solid #f1f5f9;
}

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

.account-nav-admin + .account-nav-logout::before {
    content: none;
}

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

.account-main > * {
    min-width: 0;
}

.account-card {
    padding: 32px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.account-card h2 {
    margin: 0 0 6px;
    color: var(--account-ink);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

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

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

.account-card-head a {
    color: var(--account-green);
    font-size: 14px;
    font-weight: 600;
}

.account-card-head a:hover {
    color: var(--account-teal-ink);
}

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

/* Kept for older section templates; new ones use a tag beside the heading instead. */
.account-eyebrow {
    margin: 0 0 4px;
    color: var(--account-muted);
    font-size: 13px;
    font-weight: 600;
}

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

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

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

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

.account-welcome {
    padding: 32px;
    border-radius: 16px;
    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;
    font-weight: 700;
}

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

/* Plan card: the light mint-to-indigo band of the site's "Start with the right connection" CTA. */
.account-plan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-color: transparent;
    background: linear-gradient(90deg, #d1fae5 0%, #cffafe 50%, #e0e7ff 100%);
}

.account-plan-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 4px;
}

.account-plan-card h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.02em;
}

.account-plan-tag {
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--account-teal-ink);
    font-size: 11px;
    font-weight: 700;
}

.account-plan-card .account-muted {
    color: #334155;
}

.account-plan-card.is-connection,
.account-plan-card.is-enterprise {
    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-plan-tag,
.account-plan-card.is-enterprise .account-plan-tag {
    background: rgba(255, 255, 255, 0.12);
    color: #a7f3d0;
}

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

.account-plan-card.is-connection .account-btn.is-ghost,
.account-plan-card.is-enterprise .account-btn.is-ghost {
    border-color: rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
}

/* Meters: one ruled 2×2 grid inside the card, not a card per meter. */
.account-meters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--account-line);
    border-radius: 12px;
    background: var(--account-line);
}

.account-meter {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 20px;
    background: #fff;
}

.account-meters > .account-meter:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

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

.account-meter-top strong {
    color: var(--account-ink);
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.account-meter-top strong small {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

.account-meter.is-locked .account-meter-top strong {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
}

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

.account-meter-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--account-grad);
    transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.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-meter-note a {
    color: var(--account-green);
}

.account-meters + .account-hint {
    margin: 12px 0 0;
}

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

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

.account-card > h2 + .account-todo {
    margin-top: 12px;
}

.account-todo li + li,
.account-activity li + li {
    border-top: 1px solid #f1f5f9;
}

.account-todo a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    row-gap: 4px;
    align-items: center;
    padding: 16px 0;
    text-decoration: none;
}

.account-todo a svg {
    grid-row: 1 / span 2;
    grid-column: 2;
    color: #94a3b8;
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease;
}

.account-todo a:hover strong {
    color: var(--account-teal-ink);
}

.account-todo a:hover svg {
    color: var(--account-green);
    transform: translateX(3px);
}

.account-todo li:last-child a {
    padding-bottom: 0;
}

.account-todo strong,
.account-activity strong,
.account-methods strong {
    color: var(--account-ink);
    font-size: 14px;
    font-weight: 700;
    transition: color 160ms ease;
}

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

.account-activity a {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 2px;
    padding: 12px 0;
    text-decoration: none;
}

.account-activity a::before {
    content: "";
    grid-row: 1;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: #cbd5e1;
}

.account-activity .is-accepted a::before {
    background: #16a34a;
}

.account-activity strong,
.account-activity time {
    grid-column: 2;
}

.account-activity a:hover strong {
    color: var(--account-teal-ink);
}

.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;
}

.is-application .account-notification-icon {
    background: #2563eb;
}

.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: 8px;
    }

    .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-admin,
    .account-nav-logout {
        margin-top: 0;
    }

    .account-nav-admin::before,
    .account-nav-logout::before {
        content: none;
    }
}

@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-main,
    .account-columns {
        gap: 16px;
    }

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

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

    .account-plan-card .account-actions,
    .account-plan-card .account-btn {
        width: 100%;
    }

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

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

    .account-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* Connection requests: the request cards sit straight on the page, so they get the full width. */
    .account-card.account-connections {
        padding: 8px 0 0;
        border: 0;
        background: none;
        box-shadow: none;
    }

    .account-connections .account-card-head {
        padding: 0 4px;
    }

    .account-connections .my-connections-tabs {
        flex-wrap: nowrap;
        margin: 0 -16px 16px;
        padding: 0 16px 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .account-connections .my-connections-tabs::-webkit-scrollbar {
        display: none;
    }

    .account-connections .my-connections-tabs button {
        flex: none;
        padding: 8px 14px;
    }

    .account-connections .my-connection {
        padding: 20px;
        border-color: rgba(226, 232, 240, 0.8);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    /* Logo and status on top, then the title across the whole card. */
    .account-connections .my-connection-head {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 14px 12px;
    }

    .account-connections .my-connection-thumb {
        width: 48px;
        height: 48px;
    }

    .account-connections .my-connection-status {
        order: 0;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        margin: 0;
    }

    .account-connections .my-connection-title {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .account-connections .my-connection-title h3 {
        font-size: 20px;
    }

    .account-connections .my-connection-steps {
        margin-top: 18px;
    }

    .account-connections .my-connection-foot {
        align-items: center;
        padding-top: 14px;
        border-top: 1px solid #f1f5f9;
    }
}

@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;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

/* Status shows in the pill and the progress line; no coloured side stripe, no lift inside the card. */
.account-connections .my-connection::before {
    content: none;
}

.account-connections .my-connection:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px -14px rgba(15, 23, 42, 0.25);
    transform: none;
}

/* Status filter, like the active filters on Innovation Hub. */
.account-connections .my-connections-tabs button {
    border-color: #dce5ee;
    font-size: 13px;
}

.account-connections .my-connections-tabs button:hover:not(:disabled):not(.is-active) {
    border-color: #94a3b8;
}

.account-connections .my-connections-tabs button.is-active {
    border-color: var(--account-green);
    background: var(--account-teal-soft);
    color: #042f2e;
    font-weight: 600;
}

.account-connections .my-connections-tabs button.is-active span {
    background: #ccfbf1;
    color: var(--account-teal-ink);
}

.account-connections .my-connection-type {
    background: var(--account-teal-soft);
    color: var(--account-teal-ink);
}

.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): fade out, ease the height, cards come in in turn. */
.account-main {
    position: relative;
}

.account-main.is-sizing {
    overflow: hidden;
    transition: height 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.account-main > * {
    transition: opacity 170ms ease-in, transform 170ms ease-in;
}

.account-main.is-leaving > * {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

/* Only when the server takes a while. */
.account-main.is-loading::after {
    content: "";
    position: absolute;
    top: 48px;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border: 2px solid #cbd5e1;
    border-top-color: var(--account-green);
    border-radius: 50%;
    animation: account-spin 700ms linear infinite;
}

.account-main.is-entering > * {
    animation: account-enter 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

@keyframes account-enter {
    from { opacity: 0; transform: translateY(14px); }
    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: 20px;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    background: var(--account-teal-soft);
}

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

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

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

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

/* ---------- My plan: VNPAY checkout ---------- */
.account-checkout {
    border-color: var(--account-green);
    box-shadow: 0 24px 48px -36px rgba(59, 162, 149, 0.7);
}

.account-checkout-head {
    margin-bottom: 20px;
}

.account-checkout-form {
    display: grid;
    gap: 18px;
}

.account-checkout-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.account-checkout-plans legend {
    margin-bottom: 8px;
    padding: 0;
    color: var(--account-ink);
    font-size: 14px;
    font-weight: 600;
}

.account-checkout-plan {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--account-line);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.account-checkout-plan:hover {
    border-color: var(--account-green);
}

.account-checkout-plan.is-selected {
    border-color: var(--account-green);
    background: #f4fbf9;
    box-shadow: 0 0 0 1px var(--account-green);
}

.account-checkout-plan input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--account-green);
}

.account-checkout-plan span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.account-checkout-plan strong {
    color: var(--account-ink);
    font-size: 16px;
}

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

.account-stepper {
    display: inline-flex;
    align-items: stretch;
    width: fit-content;
    border: 1px solid var(--account-line);
    border-radius: 12px;
    overflow: hidden;
}

.account-stepper button {
    width: 44px;
    border: 0;
    background: var(--account-soft);
    color: var(--account-ink);
    font: inherit;
    font-size: 18px;
    cursor: pointer;
}

.account-stepper button:hover {
    background: #eef2f6;
}

.account-field .account-stepper input {
    width: 64px;
    border: 0;
    border-radius: 0;
    text-align: center;
    -moz-appearance: textfield;
}

.account-stepper input::-webkit-outer-spin-button,
.account-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

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

.account-checkout-vat[hidden],
.account-checkout-plans[hidden],
.account-checkout-seats[hidden],
.account-checkout .account-hint[hidden] {
    display: none;
}

.account-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.account-table-scroll .account-table {
    min-width: 560px;
}

.account-checkout-plan:has(input:disabled) {
    opacity: 0.55;
    cursor: not-allowed;
}

.account-checkout-plan:has(input:disabled):hover {
    border-color: var(--account-line);
}

.account-checkout-summary {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--account-soft);
}

.account-checkout-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.account-checkout-summary > div[hidden] {
    display: none;
}

.account-checkout-summary dt {
    color: var(--account-muted);
}

.account-checkout-summary dd {
    margin: 0;
    color: var(--account-ink);
    font-variant-numeric: tabular-nums;
}

.account-checkout-summary .is-total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--account-line);
}

.account-checkout-summary .is-total dt,
.account-checkout-summary .is-total dd {
    color: var(--account-ink);
    font-size: 18px;
    font-weight: 700;
}

.account-checkout .account-actions {
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.account-checkout-pay[disabled] {
    opacity: 0.7;
    cursor: wait;
}

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

.account-checkout-secure::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--account-green);
    vertical-align: middle;
}

/* Upgrade request folded under the checkout. */
.account-request > summary {
    color: var(--account-ink);
    font-weight: 600;
    cursor: pointer;
}

.account-request[open] > summary {
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .account-checkout-plans {
        grid-template-columns: 1fr;
    }

    .account-checkout .account-actions .account-btn {
        width: 100%;
    }
}

/* Câu định vị dài hơn câu cũ: giảm cỡ chữ để khung thương hiệu vẫn cân. */
.account-auth-brand h2 {
    font-size: 24px;
    line-height: 34px;
}

/* My pitches / Fund pitches (template-parts/account/pitches.php, fund-pitches.php). */
.account-pitch-list {
    display: grid;
    gap: 16px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.account-pitch {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.account-pitch-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.account-pitch-head > div {
    flex: 1;
    min-width: 0;
}

.account-pitch-head h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.account-pitch-head h3 a {
    color: var(--account-ink);
}

.account-pitch-logo {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    border-radius: 10px;
}

.account-pitch-logo img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

.account-pitch-status {
    flex: none;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eef6f2;
    color: #1e7a5c;
    font-size: 13px;
    font-weight: 700;
}

.account-pitch.is-rejected .account-pitch-status,
.account-pitch.is-closed .account-pitch-status,
.account-pitch.is-fund_declined .account-pitch-status {
    background: #f1f5f9;
    color: #475569;
}

.account-pitch-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.account-pitch-steps li {
    padding-top: 10px;
    border-top: 4px solid #e2e8f0;
    color: var(--account-muted);
    font-size: 12px;
    font-weight: 600;
}

.account-pitch-steps li.is-done,
.account-pitch-steps li.is-current {
    border-top-color: var(--account-green);
    color: var(--account-ink);
}

.account-pitch-message {
    margin-top: 14px;
    padding: 12px 14px;
    border-left: 4px solid var(--account-green);
    border-radius: 8px;
    background: #f8fafc;
    font-size: 14px;
}

.account-pitch-message p {
    margin: 4px 0 0;
}

.account-pitch-text {
    margin: 14px 0 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.account-pitch-deck {
    margin: 12px 0 0;
    font-size: 14px;
}

.account-pitch-deck a {
    color: #047857;
    font-weight: 600;
}

.account-pitch-answer {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef2f6;
}

@media (max-width: 767px) {
    .account-pitch-head {
        flex-wrap: wrap;
    }

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

/* My organization (template-parts/account/organization.php). */
.account-org-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Tab Pitches của quỹ: số pitch và nút mở Fund pitches cùng một hàng. */
.account-org-pitch-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-top: 16px;
    padding: 16px 20px;
    border: 1px solid var(--account-line);
    border-radius: 12px;
    background: var(--account-soft);
}

.account-org-pitch-summary p {
    margin: 0;
    color: var(--account-ink);
    font-size: 15px;
    font-weight: 600;
}

.account-org-head > div {
    flex: 1;
    min-width: 0;
}

.account-org-head h2 {
    margin: 0 0 2px;
}

.account-org-logo {
    display: grid;
    flex: none;
    place-items: center;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border: 1px solid var(--account-line);
    border-radius: 12px;
    background: #f8fafc;
}

.account-org-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.account-org-view {
    flex: none;
    color: var(--account-green);
    font-size: 14px;
    font-weight: 600;
}

.account-org-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
}

.account-org-switch label {
    color: var(--account-muted);
    font-weight: 600;
}

.account-org-switch select {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--account-line);
    border-radius: 10px;
    font: inherit;
}

.account-org-tabs {
    display: flex;
    gap: 4px;
    margin: 20px -32px -32px;
    padding: 0 24px;
    overflow-x: auto;
    border-top: 1px solid var(--account-line);
    scrollbar-width: none;
}

.account-org-tabs a {
    flex: none;
    padding: 14px 12px;
    border-bottom: 2px solid transparent;
    color: var(--account-muted);
    font-size: 14px;
    font-weight: 600;
}

.account-org-tabs a:hover {
    color: var(--account-ink);
}

.account-org-tabs a.is-active {
    border-bottom-color: var(--account-green);
    color: var(--account-ink);
}

.account-org-ticket {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}

.account-org-table td {
    vertical-align: top;
}

.account-org-table td a {
    color: #047857;
    font-weight: 600;
}

.account-org-table tr.is-invited td {
    color: var(--account-muted);
}

.account-org-table form {
    margin: 0;
}

.account-org-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.account-org-status.is-live {
    background: #ecfdf5;
    color: #047857;
}

.account-org-status.is-pending {
    background: #fff7ed;
    color: #b45309;
}

.account-org-status.is-needs-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.account-org-edit {
    display: block;
    margin-top: 6px;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
}

.account-org-submission-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.account-org-submission {
    border: 1px solid var(--account-line);
    border-radius: 12px;
}

.account-org-submission summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
}

.account-org-submission dl {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0 16px 16px;
    font-size: 14px;
}

.account-org-submission dl > div {
    display: grid;
    grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
    gap: 12px;
}

.account-org-submission dt {
    color: var(--account-muted);
    font-weight: 600;
}

.account-org-submission dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.account-org-submission dd a {
    color: #047857;
    font-weight: 600;
}

.account-org-invite-form {
    display: grid;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--account-line);
}

.account-org-invite-form h3 {
    margin: 0;
    color: var(--account-ink);
    font-size: 16px;
    font-weight: 700;
}

.account-org-invite-body {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 16px 0;
    text-align: center;
}

.account-org-invite-body .account-org-logo {
    width: 72px;
    height: 72px;
}

.account-org-invite-body h2 {
    margin: 0;
}

.account-org-invite-body .account-muted {
    max-width: 480px;
}

@media (max-width: 767px) {
    .account-org-head {
        flex-wrap: wrap;
    }

    .account-org-view {
        flex-basis: 100%;
    }

    .account-org-tabs {
        margin: 16px -20px -24px;
        padding: 0 12px;
    }

    .account-org-submission dl > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* ---------- Design review (marcom, 27/10/2026) ---------- */

/* Banner: the network artwork used on the other pages; the line under the title in white. */
.account-page .hero {
    position: relative;
    background: #050b1c;
}

.account-page .hero::before {
    position: absolute;
    inset: 0;
    background: var(--account-hero-art, none) right center / cover no-repeat;
    content: "";
    pointer-events: none;
}

.account-page .hero[style*="background-image"]::before,
.account-page .hero-decor {
    display: none;
}

.account-page .hero-inner {
    position: relative;
    z-index: 1;
}

.account-page .hero-sub {
    color: #fff;
}

/* Readable sizes across the member area ("text on this page is too small"). */
.account-page .account-muted,
.account-page .account-empty,
.account-page .account-welcome p {
    font-size: 15px;
}

.account-page .account-hint,
.account-page .account-error {
    font-size: 14px;
}

.account-page .account-card h2 {
    font-size: 22px;
}

.account-page .account-nav a,
.account-page .account-btn,
.account-page .account-card-head a,
.account-page .account-meter-top,
.account-page .account-meter-top strong small,
.account-page .account-field label,
.account-page .account-chips legend,
.account-page .account-interests legend {
    font-size: 15px;
}

.account-page .account-meter-note,
.account-page .account-todo span,
.account-page .account-methods span,
.account-page .account-chips span {
    font-size: 14px;
}

.account-page .account-todo strong,
.account-page .account-activity strong,
.account-page .account-methods strong {
    font-size: 16px;
}

.account-page .account-activity time,
.account-page .account-plan-tag,
.account-page .account-nav-count {
    font-size: 13px;
}

/* Profile → Fields of interest: chosen fields as chips, the full list behind "Choose fields". */
.account-interests {
    display: grid;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.account-interests legend {
    margin-bottom: 8px;
    padding: 0;
    color: var(--account-ink);
    font-size: 14px;
    font-weight: 600;
}

.account-interests-chosen {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-interests-chosen span {
    padding: 7px 14px;
    border: 1px solid var(--account-green);
    border-radius: 9999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 14px;
    font-weight: 600;
}

.account-interests-chosen em {
    color: var(--account-muted);
    font-size: 14px;
    font-style: normal;
}

.account-interests-picker summary {
    width: max-content;
    list-style: none;
    cursor: pointer;
}

.account-interests-picker summary::-webkit-details-marker {
    display: none;
}

.account-interests-picker[open] summary {
    margin-bottom: 12px;
}

.account-interests-picker .account-chips {
    padding: 16px;
    border: 1px solid var(--account-line);
    border-radius: 12px;
    background: #f8fafc;
}

/* "My Innovation Intelligence" (and its Vietnamese label) fits on one line in the sidebar. */
@media (min-width: 961px) {
    .account-layout {
        grid-template-columns: 304px minmax(0, 1fr);
    }

    .account-nav a {
        white-space: nowrap;
    }
}

/*
 * Account → Pricing on tablets (768–1100px): two plans per row instead of three page-wide cards;
 * the 3rd plan takes the whole row. The checkout total keeps "225,000 đ" on one line.
 */
@media (min-width: 768px) and (max-width: 1100px) {
    .account-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-plans > :nth-child(3):last-child {
        grid-column: 1 / -1;
    }
}

.account-checkout-summary .is-total dd {
    white-space: nowrap;
}

/* Required-field stars inside chip groups and image labels: red like the other fields. */
.account-chips legend em,
.account-listing-image strong em {
    color: #dc2626;
    font-style: normal;
}

/* Ô chọn file ẩn sau nút "Upload/Replace image": WordPress (global-styles) cho .screen-reader-text:focus hiện thành
   hộp xám ở góc trên, nên sau khi chọn file ô vẫn giữ focus và bật lên. Giữ nó ẩn, viền focus chuyển sang nút. */
input[type="file"].screen-reader-text:focus {
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
}

:has(> input[type="file"].screen-reader-text:focus-visible) > label.account-btn {
    outline: 2px solid var(--account-green);
    outline-offset: 2px;
}

/* Logo và banner: khung preview cùng chiều rộng để cột nút và hướng dẫn thẳng hàng; logo vuông căn giữa khung.
   account-listings.css nạp sau nên thêm .account-form để thắng độ ưu tiên. */
.account-form .account-listing-image {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.account-form .account-listing-image.is-logo .account-listing-image-preview {
    justify-self: center;
    width: 96px;
    height: 96px;
}

@media (max-width: 767px) {
    /* Màn hẹp: cột ảnh 112px (banner 112×72), logo 72×72 căn giữa cùng cột. */
    .account-form .account-listing-image {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 14px;
    }

    .account-form .account-listing-image.is-logo .account-listing-image-preview {
        width: 72px;
        height: 72px;
    }
}

/* Hiệu ứng hiện dần (bambu-section-reveal, transform) biến khối tài khoản thành một lớp riêng ngang hàng footer; footer
   nằm sau nên đè lên dropdown mở gần cuối trang. Đặt khối tài khoản lên trên footer (menu đầu trang vẫn cao hơn). */
.account-section {
    position: relative;
    z-index: 2;
}

/* Chọn tổ chức (khi quản lý nhiều tổ chức): dropdown chung, gọn hơn ô trong form. */
.account-org-switch .bambu-select {
    min-width: 240px;
}

.account-org-switch .bambu-select-button {
    min-height: 40px;
    padding: 0 12px;
    border-color: var(--account-line);
    border-radius: 10px;
    font-size: 14px;
}


/* Fund pitches: câu trả lời của quỹ ghi rõ trên thẻ; ô trả lời gập trong "Đổi câu trả lời". */
.account-pitch-answered {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #ccebe3;
    border-radius: 12px;
    background: #f0fdfa;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.account-pitch-answered.is-fund_declined {
    border-color: var(--account-line);
    background: var(--account-soft);
}

.account-pitch-answered p {
    margin: 0;
}

.account-pitch-answered strong {
    color: var(--account-teal-ink);
}

.account-pitch-answered.is-fund_declined strong {
    color: var(--account-ink);
}

.account-pitch-answered-note {
    margin-top: 8px !important;
    color: var(--account-muted);
}

.account-pitch-answered-note span {
    color: var(--account-ink);
    font-weight: 600;
}

.account-pitch-change {
    margin-top: 10px;
}

.account-pitch-change summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #047857;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.account-pitch-change summary::-webkit-details-marker {
    display: none;
}

.account-pitch-change summary::after {
    content: "▾";
    font-size: 12px;
    transition: transform 160ms ease;
}

.account-pitch-change[open] summary::after {
    transform: rotate(180deg);
}

.account-pitch-change .account-pitch-answer {
    margin-top: 12px;
    padding-top: 12px;
}

/* Nút đang chọn: có dấu ✓; nút còn lại nhạt đi để thấy rõ trạng thái hiện tại. */
.account-pitch-choices .account-btn.is-ghost.is-chosen {
    border-color: #64748b;
    background: #f1f5f9;
    color: var(--account-ink);
}

.account-pitch-choices .account-btn:not(.is-chosen) + .account-btn.is-chosen,
.account-pitch-choices:has(.is-chosen) .account-btn:not(.is-chosen) {
    opacity: 0.75;
}
