/* ====================
   Member Pages
==================== */

.member-page {
    background:
        radial-gradient(circle at 5% -10%, rgba(78, 205, 196, 0.12), transparent 40%),
        radial-gradient(circle at 95% -10%, rgba(255, 107, 53, 0.14), transparent 42%),
        linear-gradient(180deg, #fffdf9 0%, #ffffff 46%, #f7fbff 100%);
}

.member-hero {
    padding-bottom: var(--es-space-xl);
}

.member-hero-inner {
    max-width: 860px;
}

.member-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    margin-bottom: var(--es-space-md);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--es-radius-full);
    color: var(--es-secondary);
    background: rgba(78, 205, 196, 0.16);
}

.member-title {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.12;
    color: var(--es-gray-900);
    margin-bottom: var(--es-space-md);
}

.member-subtitle {
    max-width: 760px;
    font-size: 18px;
    color: var(--es-gray-600);
}

.member-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--es-space-md);
    margin-top: var(--es-space-lg);
}

.member-hero-link {
    font-weight: 600;
    color: var(--es-secondary);
    border-bottom: 1px solid rgba(26, 26, 46, 0.2);
    padding-bottom: 2px;
    transition: color var(--es-transition-fast), border-color var(--es-transition-fast);
}

.member-hero-link:hover {
    color: var(--es-primary);
    border-color: rgba(255, 107, 53, 0.6);
}

/* --------------------
   Payment Page
-------------------- */
.member-plan-section {
    padding-top: 0;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--es-space-lg);
}

.member-plan-card {
    position: relative;
    border-radius: var(--es-radius-xl);
    border: 1px solid rgba(26, 26, 46, 0.08);
    background: #fff;
    box-shadow: 0 8px 26px rgba(26, 26, 46, 0.07);
    padding: var(--es-space-lg);
    display: flex;
    flex-direction: column;
}

.member-plan-card.is-featured {
    border-color: rgba(255, 107, 53, 0.36);
    box-shadow: 0 16px 34px rgba(255, 107, 53, 0.15);
}

.member-plan-card.is-current {
    outline: 2px solid rgba(78, 205, 196, 0.5);
    outline-offset: 2px;
}

.member-plan-badge {
    position: absolute;
    right: 14px;
    top: -10px;
    border-radius: var(--es-radius-full);
    background: linear-gradient(90deg, #ff6b35 0%, #ff8c5d 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
}

.member-plan-head h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--es-gray-900);
}

.member-plan-desc {
    color: var(--es-gray-600);
    font-size: 14px;
}

.member-plan-price {
    margin: var(--es-space-md) 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.member-plan-price strong {
    font-size: 36px;
    line-height: 1;
    color: var(--es-secondary);
}

.member-plan-price span {
    color: var(--es-gray-500);
    font-size: 14px;
}

.member-plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.member-plan-features li {
    position: relative;
    padding: 8px 0 8px 20px;
    border-bottom: 1px dashed rgba(26, 26, 46, 0.07);
    color: var(--es-gray-700);
    font-size: 14px;
}

.member-plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--es-accent);
    font-weight: 700;
}

.member-plan-btn {
    margin-top: var(--es-space-md);
    min-height: 40px;
    border-radius: var(--es-radius-lg);
    border: 1px solid rgba(26, 26, 46, 0.14);
    color: var(--es-secondary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 14px;
    transition: transform var(--es-transition-fast), box-shadow var(--es-transition-fast);
}

.member-plan-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(26, 26, 46, 0.09);
}

.member-plan-card.is-featured .member-plan-btn {
    border: none;
    color: #fff;
    background: linear-gradient(90deg, #ff6b35 0%, #ff8d5f 100%);
}

.member-plan-current {
    display: inline-flex;
    align-items: center;
    margin-top: var(--es-space-sm);
    border-radius: var(--es-radius-full);
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #1d9b93;
    background: rgba(78, 205, 196, 0.15);
}

.member-note-card h2 {
    margin-bottom: var(--es-space-sm);
    font-size: 26px;
}

.member-note-card ol {
    margin: 0;
    padding-left: 20px;
    color: var(--es-gray-700);
}

.member-note-card li {
    margin-bottom: 8px;
}

.member-note-tip {
    margin-top: var(--es-space-md);
    color: var(--es-gray-600);
    font-size: 14px;
    border-left: 3px solid var(--es-primary);
    padding-left: 12px;
}

/* --------------------
   Consultation Page
-------------------- */
.consult-highlights {
    padding-top: 0;
}

.consult-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--es-space-md);
}

.consult-highlight h2 {
    margin-bottom: var(--es-space-sm);
    font-size: 22px;
}

.consult-highlight p {
    color: var(--es-gray-600);
    font-size: 15px;
}

.consult-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    gap: var(--es-space-xl);
    align-items: start;
}

.consult-form-head h2 {
    margin-bottom: 4px;
    font-size: 30px;
}

.consult-form-head p {
    color: var(--es-gray-600);
    margin-bottom: var(--es-space-lg);
}

.consult-form {
    display: flex;
    flex-direction: column;
    gap: var(--es-space-md);
}

.consult-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--es-space-md);
}

.consult-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--es-gray-800);
}

.consult-field input,
.consult-field select,
.consult-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--es-gray-300);
    border-radius: var(--es-radius-lg);
    background: #fff;
    font-size: 15px;
    transition: border-color var(--es-transition-fast), box-shadow var(--es-transition-fast);
}

.consult-field input:focus,
.consult-field select:focus,
.consult-field textarea:focus {
    outline: none;
    border-color: var(--es-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.consult-field textarea {
    resize: vertical;
    min-height: 140px;
}

.consult-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--es-gray-700);
}

.consult-check input {
    margin-top: 3px;
}

.consult-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.consult-status {
    min-height: 22px;
    font-size: 14px;
    color: var(--es-gray-600);
}

.consult-status.is-success {
    color: #1d9b93;
}

.consult-status.is-error {
    color: #b42318;
}

.consult-side {
    display: flex;
    flex-direction: column;
    gap: var(--es-space-md);
    position: sticky;
    top: 92px;
}

.consult-side-card h3 {
    font-size: 19px;
    margin-bottom: var(--es-space-sm);
}

.consult-side-card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--es-gray-700);
}

.consult-side-card li {
    margin-bottom: 8px;
}

.consult-side-card p {
    color: var(--es-gray-700);
    font-size: 15px;
    margin-bottom: var(--es-space-sm);
}

.consult-side-card a {
    color: var(--es-primary);
}

/* --------------------
   Responsive
-------------------- */
@media (max-width: 1100px) {
    .member-grid,
    .consult-highlights-grid {
        grid-template-columns: 1fr 1fr;
    }

    .consult-layout {
        grid-template-columns: 1fr;
    }

    .consult-side {
        position: static;
        top: auto;
    }
}

@media (max-width: 760px) {
    .member-title {
        font-size: 34px;
    }

    .member-subtitle {
        font-size: 16px;
    }

    .member-hero-actions {
        align-items: stretch;
    }

    .member-hero-actions .btn,
    .member-hero-link {
        width: 100%;
        text-align: center;
    }

    .member-hero-link {
        border: 1px solid rgba(26, 26, 46, 0.14);
        border-radius: var(--es-radius-lg);
        padding: 8px 0;
    }

    .member-grid,
    .consult-highlights-grid,

    /* =========================================================
       Auth Pages — Login & Register
       ========================================================= */

    .auth-page {
        min-height: 100vh;
        background:
            radial-gradient(circle at 10% -10%, rgba(78, 205, 196, 0.12), transparent 42%),
            radial-gradient(circle at 90% 0%, rgba(255, 107, 53, 0.14), transparent 38%),
            linear-gradient(180deg, #fffdf9 0%, #ffffff 42%, #f7fbff 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--es-space-2xl) var(--es-space-md);
    }

    .auth-wrap {
        width: 100%;
        max-width: 960px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        border-radius: var(--es-radius-2xl);
        overflow: hidden;
        box-shadow: var(--es-shadow-xl);
    }

    /* Left brand panel */
    .auth-brand {
        background: linear-gradient(135deg, var(--es-secondary) 0%, #2d2d5e 100%);
        padding: var(--es-space-3xl) var(--es-space-2xl);
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: #fff;
        position: relative;
        overflow: hidden;
    }

    .auth-brand::before {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: rgba(255, 107, 53, 0.12);
    }

    .auth-brand::after {
        content: '';
        position: absolute;
        bottom: -40px;
        left: -40px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: rgba(78, 205, 196, 0.10);
    }

    .auth-brand-logo {
        display: flex;
        align-items: center;
        gap: var(--es-space-sm);
        margin-bottom: var(--es-space-2xl);
        font-size: 1.25rem;
        font-weight: 800;
        color: #fff;
        text-decoration: none;
        position: relative;
        z-index: 1;
    }

    .auth-brand-logo img {
        height: 32px;
        width: auto;
    }

    .auth-brand-tagline {
        font-size: 1.75rem;
        font-weight: 800;
        line-height: 1.28;
        margin: 0 0 var(--es-space-md);
        position: relative;
        z-index: 1;
    }

    .auth-brand-tagline span {
        color: var(--es-primary);
    }

    .auth-brand-desc {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.72);
        line-height: 1.7;
        margin: 0 0 var(--es-space-xl);
        position: relative;
        z-index: 1;
    }

    .auth-brand-features {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: var(--es-space-sm);
        position: relative;
        z-index: 1;
    }

    .auth-brand-features li {
        display: flex;
        align-items: center;
        gap: var(--es-space-sm);
        font-size: 0.88rem;
        color: rgba(255, 255, 255, 0.82);
    }

    .auth-brand-features li::before {
        content: '';
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--es-primary);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 4.5' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-size: 12px;
        background-repeat: no-repeat;
        background-position: center;
    }

    /* Right form panel */
    .auth-form-panel {
        background: #fff;
        padding: var(--es-space-3xl) var(--es-space-2xl);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .auth-form-header {
        margin-bottom: var(--es-space-xl);
    }

    .auth-form-kicker {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(255, 107, 53, 0.10);
        color: var(--es-primary);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 5px 12px;
        border-radius: var(--es-radius-full);
        margin-bottom: var(--es-space-sm);
    }

    .auth-form-title {
        font-size: 1.75rem;
        font-weight: 800;
        color: var(--es-secondary);
        margin: 0 0 var(--es-space-xs);
        line-height: 1.2;
    }

    .auth-form-sub {
        font-size: 0.9rem;
        color: var(--es-gray-500);
    }

    .auth-form-sub a {
        color: var(--es-primary);
        font-weight: 600;
        text-decoration: none;
    }

    .auth-form-sub a:hover {
        text-decoration: underline;
    }

    /* Form fields */
    .auth-form .form-group {
        margin-bottom: var(--es-space-md);
    }

    .auth-form label {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--es-secondary);
        margin-bottom: 6px;
    }

    .auth-form .form-control {
        width: 100%;
        padding: 11px 14px;
        border: 1.5px solid var(--es-gray-200);
        border-radius: var(--es-radius-lg);
        font-size: 0.95rem;
        color: var(--es-secondary);
        background: var(--es-gray-50);
        transition: border-color var(--es-transition-fast), box-shadow var(--es-transition-fast), background var(--es-transition-fast);
        outline: none;
        box-sizing: border-box;
    }

    .auth-form .form-control:focus {
        border-color: var(--es-primary);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
    }

    .auth-form .form-control.is-error {
        border-color: #e53935;
        box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.10);
    }

    .auth-input-wrap {
        position: relative;
    }

    .auth-input-wrap .form-control {
        padding-left: 42px;
    }

    .auth-input-icon {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        color: var(--es-gray-400);
        pointer-events: none;
    }

    .auth-toggle-pwd {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        color: var(--es-gray-400);
        padding: 0;
        display: flex;
        align-items: center;
        transition: color var(--es-transition-fast);
    }

    .auth-toggle-pwd:hover {
        color: var(--es-primary);
    }

    .auth-toggle-pwd svg {
        width: 18px;
        height: 18px;
    }

    .auth-field-hint {
        font-size: 0.78rem;
        color: var(--es-gray-500);
        margin-top: 5px;
    }

    .auth-field-error {
        font-size: 0.78rem;
        color: #e53935;
        margin-top: 5px;
        display: none;
    }

    .auth-field-error.visible {
        display: block;
    }

    /* Remember / forgot row */
    .auth-meta-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: var(--es-space-lg);
        gap: var(--es-space-sm);
    }

    .auth-remember {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 0.87rem;
        color: var(--es-gray-600);
        cursor: pointer;
    }

    .auth-remember input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: var(--es-primary);
    }

    .auth-forgot {
        font-size: 0.87rem;
        color: var(--es-primary);
        font-weight: 600;
        text-decoration: none;
    }

    .auth-forgot:hover {
        text-decoration: underline;
    }

    /* Submit button */
    .auth-submit-btn {
        width: 100%;
        padding: 13px 24px;
        background: var(--es-primary);
        color: #fff;
        border: none;
        border-radius: var(--es-radius-lg);
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        transition: background var(--es-transition-fast), transform var(--es-transition-fast), box-shadow var(--es-transition-fast);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .auth-submit-btn:hover {
        background: var(--es-primary-dark);
        box-shadow: var(--es-shadow-md);
        transform: translateY(-1px);
    }

    .auth-submit-btn:active {
        transform: translateY(0);
    }

    .auth-submit-btn:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .auth-submit-btn .spinner {
        display: none;
        width: 18px;
        height: 18px;
        border: 2px solid rgba(255,255,255,0.4);
        border-top-color: #fff;
        border-radius: 50%;
        animation: auth-spin 0.7s linear infinite;
    }

    .auth-submit-btn.loading .spinner {
        display: block;
    }

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

    /* Agree row */
    .auth-agree {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        font-size: 0.85rem;
        color: var(--es-gray-600);
        margin-bottom: var(--es-space-lg);
        cursor: pointer;
        line-height: 1.5;
    }

    .auth-agree input[type="checkbox"] {
        margin-top: 2px;
        flex-shrink: 0;
        width: 16px;
        height: 16px;
        accent-color: var(--es-primary);
    }

    .auth-agree a {
        color: var(--es-primary);
        font-weight: 600;
        text-decoration: none;
    }

    .auth-agree a:hover {
        text-decoration: underline;
    }

    /* Global form alert */
    .auth-alert {
        padding: 12px 16px;
        border-radius: var(--es-radius-md);
        font-size: 0.875rem;
        margin-bottom: var(--es-space-md);
        display: none;
    }

    .auth-alert.visible {
        display: block;
    }

    .auth-alert.error {
        background: rgba(229, 57, 53, 0.08);
        color: #c62828;
        border: 1px solid rgba(229, 57, 53, 0.2);
    }

    .auth-alert.success {
        background: rgba(78, 205, 196, 0.1);
        color: #00897b;
        border: 1px solid rgba(78, 205, 196, 0.25);
    }

    /* Password strength bar */
    .password-strength {
        margin-top: 6px;
    }

    .password-strength-bar {
        height: 4px;
        border-radius: 2px;
        background: var(--es-gray-200);
        overflow: hidden;
        margin-bottom: 4px;
    }

    .password-strength-fill {
        height: 100%;
        border-radius: 2px;
        transition: width 0.3s, background 0.3s;
        width: 0%;
    }

    .password-strength-fill.weak   { width: 25%; background: #e53935; }
    .password-strength-fill.fair   { width: 50%; background: #fb8c00; }
    .password-strength-fill.good   { width: 75%; background: #f9a825; }
    .password-strength-fill.strong { width: 100%; background: #43a047; }

    .password-strength-label {
        font-size: 0.75rem;
        color: var(--es-gray-500);
    }

    /* =========================================================
       Account / Personal Center Page
       ========================================================= */

    .account-page {
        min-height: 100vh;
        background:
            radial-gradient(circle at 10% -10%, rgba(78, 205, 196, 0.08), transparent 42%),
            radial-gradient(circle at 90% 0%, rgba(255, 107, 53, 0.10), transparent 38%),
            linear-gradient(180deg, #fffdf9 0%, #ffffff 30%, #f7fbff 100%);
        padding-bottom: var(--es-space-3xl);
    }

    /* Account hero bar */
    .account-hero {
        background: linear-gradient(90deg, rgba(26,26,46,0.97) 0%, rgba(40,40,80,0.95) 100%);
        padding: var(--es-space-xl) 0;
    }

    .account-hero-inner {
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 var(--es-space-lg);
        display: flex;
        align-items: center;
        gap: var(--es-space-lg);
    }

    .account-avatar {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--es-primary) 0%, var(--es-accent) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.75rem;
        font-weight: 800;
        color: #fff;
        flex-shrink: 0;
        border: 3px solid rgba(255,255,255,0.15);
    }

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

    .account-hero-name {
        font-size: 1.35rem;
        font-weight: 800;
        color: #fff;
        margin: 0 0 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .account-hero-meta {
        display: flex;
        align-items: center;
        gap: var(--es-space-md);
        flex-wrap: wrap;
    }

    .account-hero-email {
        font-size: 0.87rem;
        color: rgba(255,255,255,0.62);
    }

    .account-plan-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 3px 12px;
        border-radius: var(--es-radius-full);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.05em;
    }

    .account-plan-badge.plan-free {
        background: rgba(255,255,255,0.12);
        color: rgba(255,255,255,0.85);
    }

    .account-plan-badge.plan-pro {
        background: rgba(255, 107, 53, 0.22);
        color: var(--es-primary);
    }

    .account-plan-badge.plan-enterprise {
        background: rgba(78, 205, 196, 0.22);
        color: var(--es-accent);
    }

    .account-hero-actions {
        margin-left: auto;
        display: flex;
        gap: var(--es-space-sm);
        align-items: center;
    }

    .account-logout-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 18px;
        border: 1.5px solid rgba(255,255,255,0.25);
        border-radius: var(--es-radius-lg);
        color: rgba(255,255,255,0.75);
        font-size: 0.87rem;
        font-weight: 600;
        text-decoration: none;
        transition: all var(--es-transition-fast);
    }

    .account-logout-btn:hover {
        border-color: rgba(255,255,255,0.5);
        color: #fff;
        background: rgba(255,255,255,0.08);
    }

    /* Main layout */
    .account-layout {
        max-width: 1100px;
        margin: var(--es-space-xl) auto 0;
        padding: 0 var(--es-space-lg);
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: var(--es-space-lg);
        align-items: start;
    }

    /* Sidebar nav */
    .account-sidebar {
        position: sticky;
        top: 80px;
    }

    .account-nav {
        background: #fff;
        border-radius: var(--es-radius-xl);
        box-shadow: var(--es-shadow-sm);
        border: 1px solid rgba(26,26,46,0.07);
        overflow: hidden;
    }

    .account-nav-item {
        display: flex;
        align-items: center;
        gap: var(--es-space-sm);
        padding: 13px var(--es-space-md);
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--es-gray-600);
        text-decoration: none;
        border-left: 3px solid transparent;
        transition: all var(--es-transition-fast);
        cursor: pointer;
        background: none;
        border-top: none;
        border-right: none;
        border-bottom: none;
        width: 100%;
        text-align: left;

        border-left: 3px solid transparent;
    }

    .account-nav-item:hover {
        background: var(--es-gray-50);
        color: var(--es-secondary);
    }

    .account-nav-item.active {
        background: rgba(255, 107, 53, 0.06);
        color: var(--es-primary);
        border-left-color: var(--es-primary);
    }

    .account-nav-item svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .account-nav-divider {
        height: 1px;
        background: rgba(26,26,46,0.07);
        margin: 4px 0;
    }

    /* Content area */
    .account-content {
        display: flex;
        flex-direction: column;
        gap: var(--es-space-lg);
    }

    .account-panel {
        background: #fff;
        border-radius: var(--es-radius-xl);
        box-shadow: var(--es-shadow-sm);
        border: 1px solid rgba(26,26,46,0.07);
        padding: var(--es-space-xl);
        display: none;
    }

    .account-panel.active {
        display: block;
    }

    .account-panel-title {
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--es-secondary);
        margin: 0 0 var(--es-space-lg);
        padding-bottom: var(--es-space-md);
        border-bottom: 1px solid rgba(26,26,46,0.07);
        display: flex;
        align-items: center;
        gap: var(--es-space-sm);
    }

    .account-panel-title svg {
        width: 20px;
        height: 20px;
        color: var(--es-primary);
    }

    /* Stat cards grid */
    .account-stat-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--es-space-md);
        margin-bottom: var(--es-space-xl);
    }

    .account-stat-card {
        background: var(--es-gray-50);
        border: 1px solid rgba(26,26,46,0.07);
        border-radius: var(--es-radius-xl);
        padding: var(--es-space-lg);
        display: flex;
        flex-direction: column;
        gap: var(--es-space-xs);
    }

    .account-stat-icon {
        width: 40px;
        height: 40px;
        border-radius: var(--es-radius-lg);
        background: rgba(255, 107, 53, 0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--es-primary);
        margin-bottom: var(--es-space-xs);
    }

    .account-stat-icon svg {
        width: 22px;
        height: 22px;
    }

    .account-stat-icon.accent {
        background: rgba(78, 205, 196, 0.12);
        color: var(--es-accent);
    }

    .account-stat-icon.dark {
        background: rgba(26,26,46,0.07);
        color: var(--es-secondary);
    }

    .account-stat-value {
        font-size: 1.75rem;
        font-weight: 800;
        color: var(--es-secondary);
        line-height: 1;
    }

    .account-stat-label {
        font-size: 0.82rem;
        color: var(--es-gray-500);
        font-weight: 600;
    }

    /* Profile form */
    .account-form .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--es-space-md);
        margin-bottom: var(--es-space-md);
    }

    .account-form .form-group {
        margin-bottom: var(--es-space-md);
    }

    .account-form label {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--es-secondary);
        margin-bottom: 6px;
    }

    .account-form .form-control {
        width: 100%;
        padding: 10px 14px;
        border: 1.5px solid var(--es-gray-200);
        border-radius: var(--es-radius-lg);
        font-size: 0.92rem;
        color: var(--es-secondary);
        background: var(--es-gray-50);
        outline: none;
        transition: border-color var(--es-transition-fast), box-shadow var(--es-transition-fast);
        box-sizing: border-box;
    }

    .account-form .form-control:focus {
        border-color: var(--es-primary);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
    }

    .account-form .form-control:read-only {
        background: var(--es-gray-100);
        color: var(--es-gray-500);
        cursor: not-allowed;
    }

    .account-form textarea.form-control {
        min-height: 90px;
        resize: vertical;
    }

    .account-form-actions {
        display: flex;
        gap: var(--es-space-sm);
        justify-content: flex-end;
        margin-top: var(--es-space-lg);
        padding-top: var(--es-space-md);
        border-top: 1px solid rgba(26,26,46,0.07);
    }

    .account-btn-primary {
        padding: 10px 24px;
        background: var(--es-primary);
        color: #fff;
        border: none;
        border-radius: var(--es-radius-lg);
        font-size: 0.9rem;
        font-weight: 700;
        cursor: pointer;
        transition: background var(--es-transition-fast), box-shadow var(--es-transition-fast);
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .account-btn-primary:hover {
        background: var(--es-primary-dark);
        box-shadow: var(--es-shadow-sm);
    }

    .account-btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .account-alert {
        padding: 10px 14px;
        border-radius: var(--es-radius-md);
        font-size: 0.85rem;
        margin-top: var(--es-space-sm);
        display: none;
    }

    .account-alert.visible { display: block; }
    .account-alert.success { background: rgba(78,205,196,0.1); color: #00897b; border: 1px solid rgba(78,205,196,0.25); }
    .account-alert.error   { background: rgba(229,57,53,0.08); color: #c62828; border: 1px solid rgba(229,57,53,0.2); }

    /* Plan section */
    .account-plan-card {
        border: 1.5px solid rgba(26,26,46,0.1);
        border-radius: var(--es-radius-xl);
        padding: var(--es-space-lg);
        display: flex;
        align-items: center;
        gap: var(--es-space-lg);
        margin-bottom: var(--es-space-lg);
        background: linear-gradient(135deg, #fffdf9 0%, #fff 100%);
    }

    .account-plan-card.plan-pro {
        border-color: rgba(255, 107, 53, 0.3);
        background: linear-gradient(135deg, rgba(255,107,53,0.04) 0%, #fff 100%);
    }

    .account-plan-card.plan-enterprise {
        border-color: rgba(78, 205, 196, 0.35);
        background: linear-gradient(135deg, rgba(78,205,196,0.05) 0%, #fff 100%);
    }

    .account-plan-icon {
        width: 56px;
        height: 56px;
        border-radius: var(--es-radius-xl);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        flex-shrink: 0;
        background: var(--es-gray-100);
    }

    .account-plan-info {
        flex: 1;
    }

    .account-plan-name {
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--es-secondary);
        margin-bottom: 4px;
    }

    .account-plan-desc {
        font-size: 0.85rem;
        color: var(--es-gray-500);
        line-height: 1.5;
    }

    .account-plan-cta .btn {
        white-space: nowrap;
    }

    /* Plan features table */
    .account-plan-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--es-space-sm);
    }

    .account-plan-feature {
        display: flex;
        align-items: center;
        gap: var(--es-space-sm);
        font-size: 0.87rem;
        color: var(--es-gray-700);
        padding: var(--es-space-sm) var(--es-space-md);
        background: var(--es-gray-50);
        border-radius: var(--es-radius-lg);
    }

    .account-plan-feature .check {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: rgba(78,205,196,0.15);
        color: var(--es-accent);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .account-plan-feature .check svg { width: 11px; height: 11px; }

    /* Resume list */
    .account-resume-empty {
        text-align: center;
        padding: var(--es-space-3xl) var(--es-space-xl);
        color: var(--es-gray-400);
    }

    .account-resume-empty svg {
        width: 56px;
        height: 56px;
        margin-bottom: var(--es-space-md);
        color: var(--es-gray-300);
    }

    .account-resume-empty p {
        font-size: 0.92rem;
        margin: 0 0 var(--es-space-md);
    }

    .account-resume-list {
        display: flex;
        flex-direction: column;
        gap: var(--es-space-sm);
    }

    .account-resume-item {
        display: flex;
        align-items: center;
        gap: var(--es-space-md);
        padding: var(--es-space-md);
        background: var(--es-gray-50);
        border: 1px solid rgba(26,26,46,0.07);
        border-radius: var(--es-radius-lg);
        transition: background var(--es-transition-fast);
    }

    .account-resume-item:hover {
        background: #fff;
        box-shadow: var(--es-shadow-sm);
    }

    /* =========================================================
       Responsive — Auth & Account
       ========================================================= */

    @media (max-width: 768px) {
        .auth-wrap {
            grid-template-columns: 1fr;
            max-width: 460px;
        }

        .auth-brand {
            padding: var(--es-space-xl);
        }

        .auth-brand-tagline {
            font-size: 1.4rem;
        }

        .auth-form-panel {
            padding: var(--es-space-xl);
        }

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

        .account-sidebar {
            position: static;
        }

        .account-nav {
            display: flex;
            overflow-x: auto;
            border-radius: var(--es-radius-lg);
        }

        .account-nav-item {
            white-space: nowrap;
            border-left: none;
            border-bottom: 3px solid transparent;
            flex-shrink: 0;
        }

        .account-nav-item.active {
            border-left: none;
            border-bottom-color: var(--es-primary);
        }

        .account-nav-divider {
            display: none;
        }

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

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

        .account-plan-card {
            flex-direction: column;
            text-align: center;
        }

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

        .account-hero-actions {
            display: none;
        }

        .account-hero-inner {
            gap: var(--es-space-md);
        }
    }

    @media (max-width: 480px) {
        .auth-page {
            padding: var(--es-space-lg) var(--es-space-sm);
            align-items: flex-start;
        }

        .account-stat-grid {
            grid-template-columns: 1fr;
        }
    }
    .consult-field-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Pricing Page - 定价页面优化样式
   ========================================================= */

.pricing-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 5% -10%, rgba(78, 205, 196, 0.12), transparent 40%),
        radial-gradient(circle at 95% -10%, rgba(255, 107, 53, 0.14), transparent 42%),
        linear-gradient(180deg, #fffdf9 0%, #ffffff 46%, #f7fbff 100%);
    padding-bottom: var(--es-space-3xl);
}

/* Hero Section */
.pricing-hero {
    padding: var(--es-space-3xl) 0 var(--es-space-xl);
    text-align: center;
}

.hero-content {
    max-width: 680px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(255, 107, 53, 0.06));
    color: var(--es-primary);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--es-radius-full);
    margin-bottom: var(--es-space-md);
}

.hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--es-secondary);
    margin: 0 0 var(--es-space-md);
    line-height: 1.15;
}

.hero-desc {
    font-size: 18px;
    color: var(--es-gray-600);
    margin: 0 0 var(--es-space-lg);
    line-height: 1.6;
}

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--es-space-md);
    background: #fff;
    padding: 8px 16px;
    border-radius: var(--es-radius-full);
    box-shadow: var(--es-shadow-sm);
    border: 1px solid rgba(26, 26, 46, 0.08);
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--es-gray-500);
    transition: color var(--es-transition-fast);
}

.toggle-label.active {
    color: var(--es-secondary);
}

.toggle-label .save-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--es-radius-full);
    margin-left: 6px;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--es-gray-200);
    border-radius: var(--es-radius-full);
    transition: all var(--es-transition-fast);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--es-transition-fast);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--es-primary), #ff8c5a);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* Pricing Section */
.pricing-section {
    padding: var(--es-space-xl) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--es-space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

/* Pricing Card */
.pricing-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: var(--es-space-xl);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(26, 26, 46, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.pricing-card.popular {
    border: 2px solid var(--es-primary);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.2);
}

.pricing-card.popular:hover {
    box-shadow: 0 16px 50px rgba(255, 107, 53, 0.25);
}

.pricing-card.current {
    border: 2px solid var(--es-accent);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--es-primary), #ff8c5a);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: var(--es-radius-full);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.current-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--es-accent), #7ee8e0);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: var(--es-radius-full);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.card-header {
    margin-bottom: var(--es-space-md);
}

.plan-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--es-secondary);
    margin: 0 0 8px;
}

.plan-desc {
    font-size: 14px;
    color: var(--es-gray-500);
    margin: 0;
    line-height: 1.5;
}

/* Price Section */
.card-price {
    margin-bottom: var(--es-space-lg);
    padding-bottom: var(--es-space-md);
    border-bottom: 1px dashed rgba(26, 26, 46, 0.1);
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--es-secondary);
    line-height: 1;
}

.currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--es-gray-600);
    vertical-align: top;
}

.price-period {
    font-size: 16px;
    color: var(--es-gray-500);
    margin-left: 4px;
}

.price-save {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--es-radius-full);
    margin-top: 8px;
}

.save-amount {
    font-weight: 700;
    margin-left: 4px;
}

.price-monthly {
    font-size: 13px;
    color: var(--es-gray-500);
    margin-top: 6px;
}

/* Features List */
.card-features {
    flex: 1;
    margin-bottom: var(--es-space-lg);
}

.card-features h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--es-gray-700);
    margin: 0 0 var(--es-space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.card-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--es-gray-700);
    border-bottom: 1px solid rgba(26, 26, 46, 0.05);
}

.card-features li:last-child {
    border-bottom: none;
}

.card-features li.highlight {
    background: rgba(255, 107, 53, 0.05);
    margin: 0 -16px;
    padding: 10px 16px;
    border-radius: var(--es-radius-md);
}

.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(78, 205, 196, 0.15);
    color: var(--es-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
}

.feature-label {
    flex: 1;
}

.feature-limit {
    font-size: 12px;
    color: var(--es-gray-500);
    background: var(--es-gray-100);
    padding: 2px 8px;
    border-radius: var(--es-radius-sm);
}

.feature-limit.unlimited {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Plan Highlights */
.plan-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--es-space-md);
}

.highlight-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
    color: var(--es-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--es-radius-full);
}

/* Card Action */
.card-action {
    margin-top: auto;
}

.card-action .btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: var(--es-radius-lg);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all var(--es-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--es-primary), #ff8c5a);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-free {
    background: var(--es-gray-100);
    color: var(--es-secondary);
    border: 1px solid var(--es-gray-200);
}

.btn-free:hover {
    background: var(--es-gray-200);
}

.btn-current {
    background: rgba(78, 205, 196, 0.1);
    color: var(--es-accent);
    border: 1px solid rgba(78, 205, 196, 0.3);
    cursor: default;
}

.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--es-gray-500);
}

.method-icon {
    font-size: 16px;
}

/* FAQ Section */
.pricing-faq {
    padding: var(--es-space-3xl) 0;
    background: linear-gradient(180deg, transparent, rgba(26, 26, 46, 0.02));
}

.pricing-faq .section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--es-secondary);
    margin: 0 0 var(--es-space-xl);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--es-space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: var(--es-radius-xl);
    padding: var(--es-space-lg);
    box-shadow: var(--es-shadow-sm);
    border: 1px solid rgba(26, 26, 46, 0.06);
    transition: all var(--es-transition-fast);
}

.faq-item:hover {
    box-shadow: var(--es-shadow-md);
    transform: translateY(-2px);
}

.faq-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--es-secondary);
    margin: 0 0 var(--es-space-sm);
}

.faq-item p {
    font-size: 14px;
    color: var(--es-gray-600);
    margin: 0;
    line-height: 1.6;
}

/* CTA Section */
.pricing-cta {
    padding: var(--es-space-3xl) 0;
}

.cta-content {
    text-align: center;
    background: linear-gradient(135deg, var(--es-secondary), #2d2d5e);
    border-radius: 24px;
    padding: var(--es-space-2xl);
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 var(--es-space-sm);
}

.cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 var(--es-space-lg);
}

.cta-content .btn-secondary {
    background: #fff;
    color: var(--es-secondary);
    padding: 12px 28px;
    border-radius: var(--es-radius-lg);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--es-transition-fast);
}

.cta-content .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    
    .pricing-card.popular {
        order: -1;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .billing-toggle {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pricing-card {
        padding: var(--es-space-lg);
    }
    
    .price-amount {
        font-size: 36px;
    }
    
    .cta-content {
        padding: var(--es-space-xl);
    }
    
    .cta-content h2 {
        font-size: 22px;
    }
}
