body {
    background: #f3f4f6;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1a1a1a;
}

/*   .napa-container {
        max-width: 860px;
        margin: 0 auto;
        padding: 40px 20px;
    } */

.napa-container {
    max-width: 1340px;
    margin: 5px auto;
    padding: 0 20px;
}

/* Not logged in */
.mp-login-prompt {
    text-align: center;
    max-width: 440px;
    margin: 40px auto;
    background: white;
    border-radius: 12px;
    padding: 48px 36px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.mp-lock-icon {
    font-size: 48px;
    color: var(--theme-primary);
    margin-bottom: 16px;
    display: block;
}

.mp-login-prompt h2 {
    font-size: 24px;
    color: #2a2a2a;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.mp-login-prompt p {
    color: #666;
    font-size: 14px;
    margin: 0 0 24px 0;
}

/* Page Header */
.mp-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: white;
    border-radius: 12px;
    padding: 22px 28px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.mp-page-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mp-page-icon {
    font-size: 42px;
    color: var(--theme-primary);
}

.mp-page-title h2 {
    font-size: 20px;
    color: #2a2a2a;
    margin: 0;
    font-weight: 700;
}

.mp-page-title p {
    font-size: 14px;
    color: #888;
    margin: 2px 0 0 0;
}

/* Tabs */
.mp-tab-header {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 0;
    background: white;
    border-radius: 12px 12px 0 0;
    padding: 0 24px;
    border: 1px solid rgba(0,0,0,0.03);
    border-bottom: 2px solid #f0f0f0;
    box-shadow: 0 0 20px rgba(0,0,0,0.03);
}

.mp-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

    .mp-tab-btn:hover {
        color: var(--theme-primary);
    }

    .mp-tab-btn.active {
        color: var(--theme-primary);
        border-bottom-color: var(--theme-primary);
    }

/* Card panel */
.mp-card {
    background: white;
    border-radius: 0 0 12px 12px;
    padding: 28px 32px 32px 32px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    border-top: none;
}

.mp-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--theme-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.mp-panel-note {
    font-size: 13px;
    color: #888;
    margin: -4px 0 20px 0;
    line-height: 1.5;
}

/* Form */
.mp-form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

    .mp-form-row .mp-field {
        flex: 1;
        min-width: 180px;
    }

.mp-field {
    margin-bottom: 18px;
}

.mp-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.mp-input {
    width: 100%;
    padding: 10px 13px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    background: white;
    color: #1a1a1a;
    transition: border-color 0.2s;
}

    .mp-input:focus {
        border-color: var(--theme-primary);
    }

.mp-readonly {
    background: #f9f9f9;
    color: #888;
    cursor: not-allowed;
}

.mp-field-note {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
    display: block;
}

    .mp-field-note i {
        margin-right: 4px;
    }

/* Password row */
.mp-password-row {
    position: relative;
}

    .mp-password-row .mp-input {
        padding-right: 44px;
    }

.mp-eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

    .mp-eye-btn:hover {
        color: #333;
    }

/* Buttons */
.mp-btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.mp-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--theme-secondary), var(--theme-primary));
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

    .mp-primary-btn:hover:not(:disabled) {
        opacity: 0.88;
    }

    .mp-primary-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

.mp-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--theme-primary) !important;
    border: 2px solid var(--theme-primary);
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s;
}

    .mp-secondary-btn:hover {
        background: #fef2f2;
    }

.mp-ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

    .mp-ghost-btn:hover {
        border-color: var(--theme-primary);
        color: var(--theme-primary);
    }
    

/* Messages */
.mp-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    border: 1px solid #fecaca;
}

.mp-success {
    background: #f0fdf4;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 15px;
}

@@media (max-width: 600px) {
    .mp-form-row {
        flex-direction: column;
        gap: 0;
    }

    .mp-card {
        padding: 20px 16px 24px 16px;
    }

    .mp-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}