.account-plan-panel {
    margin-top: 20px;
    margin-bottom: 0;
    padding-top: 16px;
    border-top: 1px solid #e8eaed;
}

[data-theme="dark"] .account-plan-panel {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.account-plan-loading,
.account-plan-error {
    font-size: 13px;
    color: #5f6368;
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

[data-theme="dark"] .account-plan-loading,
[data-theme="dark"] .account-plan-error {
    background: rgba(255, 255, 255, 0.06);
    color: #b0b8c4;
}

.account-plan-card {
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(145deg, #f8faff 0%, #fff 55%);
}

[data-theme="dark"] .account-plan-card {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(30, 40, 70, 0.5) 0%, rgba(20, 24, 36, 0.9) 55%);
}

.account-plan-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.account-plan-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5f6368;
    margin-bottom: 2px;
}

[data-theme="dark"] .account-plan-kicker {
    color: #9aa3b2;
}

.account-plan-name {
    display: block;
    font-size: 1.25rem;
    color: #003580;
    line-height: 1.2;
}

[data-theme="dark"] .account-plan-name {
    color: #9eb4ff;
}

.account-plan-meta {
    display: block;
    font-size: 12px;
    color: #5f6368;
    margin-top: 4px;
}

[data-theme="dark"] .account-plan-meta {
    color: #a8b0bd;
}

.account-plan-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 5px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5c542, #e8a317);
    color: #1a1028;
}

.account-plan-summary {
    font-size: 12px;
    color: #5f6368;
    margin: 0 0 8px;
}

[data-theme="dark"] .account-plan-summary {
    color: #c8d0dc;
}

.account-plan-list-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5f6368;
    margin: 0 0 8px;
}

[data-theme="dark"] .account-plan-list-title {
    color: #9aa3b2;
}

.account-plan-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(42vh, 320px);
    overflow-y: auto;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    background: #fff;
}

[data-theme="dark"] .account-plan-feature-list {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.account-plan-feat {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 8px;
    align-items: center;
    padding: 6px 10px;
    font-size: 12px;
    border-bottom: 1px solid #f1f3f4;
}

.account-plan-feat:last-child {
    border-bottom: none;
}

[data-theme="dark"] .account-plan-feat {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.account-plan-feat--on .account-plan-feat-icon {
    color: #0f9d58;
}

.account-plan-feat--off {
    opacity: 0.72;
}

.account-plan-feat--off .account-plan-feat-icon {
    color: #9aa0a6;
    font-size: 12px;
}

.account-plan-feat-label {
    color: #3c4043;
}

[data-theme="dark"] .account-plan-feat-label {
    color: #e8eaed;
}

.account-plan-feat--off .account-plan-feat-label {
    color: #80868b;
}

[data-theme="dark"] .account-plan-feat--off .account-plan-feat-label {
    color: #8a9199;
}

.account-plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.account-plan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.account-plan-btn-primary {
    flex: 1;
    min-width: 140px;
    background: linear-gradient(90deg, #ff6b2c, #6b2d9e);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(255, 107, 44, 0.35);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
}

.account-plan-btn-primary:hover {
    filter: brightness(1.06);
}

.account-plan-btn-ghost {
    background: #f1f3f4;
    color: #3c4043;
    border-color: #dfe1e5;
}

[data-theme="dark"] .account-plan-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #e8eaed;
    border-color: rgba(255, 255, 255, 0.15);
}

.header-menu-account-embed .account-plan-feature-list {
    max-height: min(36vh, 280px);
}

.header-menus-accordion-panel > #minha-conta-menu-box {
    max-height: min(78vh, 720px);
    overflow-y: auto;
}
